What's Changed
Swift Package Manager setup
- List the permissions you need in
ios/react-native-permissions.json:
["Camera", "Microphone"]- Run
npx react-native spmand rebuild. - Add the usage descriptions to your
Info.plist, as with CocoaPods.
Only the listed permissions are compiled. With Expo, the iosPermissions plugin option writes this file for you, next to the setup_permissions call in your Podfile.
CocoaPods setup does not change.