Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(iOS): update podspec to use install_modules_dependencies (#1920)
This change updates the RNScreens.podspec to consume the `install_modules_dependencies` function provided by React Native to configure the pods dependencies. Thanks to using this function, whenever we update the function in React Native, the library will automatically benefit from it. This will make the library more future proof and more resilient to changes in React Native This allow RNScreens to work also with frameworks, as before the change, it failed to build when `use_frameworks!` was set in RN 0.72.x ## Test plan Tested locally: Before changes 1. Created a new app with `npx react-native init RNFrameworks --version latest --skip-install` 1. `cd RNFrameworks` 1. `yarn add react-native-screens` 1. `yarn install` 1. `cd ios` 1. `NO_FLIPPER=1 USE_FRAMEWORKS=static RCT_NEW_ARCH_ENABLED=1 bundle exec pod install` 1. `open RNFrameworks` 1. build and run and observe it failing because it can't find files in react/debug Apply the changes to local node_modules's RNScreens.podspec changes 1. Reinstall pods `NO_FLIPPER=1 USE_FRAMEWORKS=static RCT_NEW_ARCH_ENABLED=1 bundle exec pod install` 1. `open RNFrameworks` 1. build and run and observe it succeeding
- Loading branch information