You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a question and not a feature request, but I didn't see that option as one of the issue templates. For iOS, I understand that setup-ios-permissions will add the necessary source files to the RNPermissions.podspec by reading the permissions listed in the package.json (or reactNativePermissionsIOS.json). I'm curious why this is necessary and why you can't just always include all of the source files without this step? I'm trying to understand the reasoning for the added setup complexity and the pros/cons of doing it this way.
Thanks!
Possible implementation
No response
Code sample
No response
The text was updated successfully, but these errors were encountered:
To solve this, we switched to a react native CLI command: setup-ios-permissions
It does a pretty simple job: it edits node_modules/react-native-permissions/RNPermissions.podspecsource_files to add your selected permission handlers directories.
Another benefits is that permissions handlers are now included in the module pod, not in separated ones:
Why it is needed?
This is more of a question and not a feature request, but I didn't see that option as one of the issue templates. For iOS, I understand that
setup-ios-permissions
will add the necessary source files to theRNPermissions.podspec
by reading the permissions listed in thepackage.json
(orreactNativePermissionsIOS.json
). I'm curious why this is necessary and why you can't just always include all of the source files without this step? I'm trying to understand the reasoning for the added setup complexity and the pros/cons of doing it this way.Thanks!
Possible implementation
No response
Code sample
No response
The text was updated successfully, but these errors were encountered: