

In pch.h add #include "winrt/RNPermissions.h". Check RNPermissions from Solution Projects.Right-click main application project > Add > Reference.In windows/myapp/myapp.vcxproj ad a reference to RNPermissions to your main application project.Select node_modules\react-native-permissions\windows\RNPermissions\RNPermissions.vcxproj.Right-click Solution icon in Solution Explorer > Add > Existing Project.Open the solution in Visual Studio 2019.In windows/myapp.sln add the RNCConfig project to your solution:.RNPermissionsPackage // getPackages() SuppressWarnings( "UnnecessaryLocalVariable") You also need to manual link the module on Windows when using React Native Windows prior to 0.63: 👀 See manual linking instructions iOSĪdd this line to your ios/Podfile file, then run pod install. Otherwise if it's not the case, follow these additional instructions. 🆘 Manual linkingīecause this package targets React Native 0.63.0+, you probably won't need to link it manually. From there you can select which capabilites you want your app to support.

In the app project open Package.appxmanifest file. Open the project solution file from the windows folder. NSLocationTemporaryUsageDescriptionDictionaryĪdd all wanted permissions to your app android/app/src/main/AndroidManifest.xml file: NSLocationAlwaysAndWhenInUseUsageDescription
