react-native-windows
supports the link
command for linking native dependencies to your project. We'll use this to link the react-native-camera
dependency that was installed in Lesson 4.
Using the React Native CLI link
command, add the react-native-camera
native dependency to your solution.
Open windows\<project>\Package.appxmanifest
and add the following to the <Capabilities>
section:
<uap:Capability Name="picturesLibrary" />
<DeviceCapability Name="microphone" />
<DeviceCapability Name="webcam" />
MainReactNativeHost.cs
file includes reference toreact-native-camera
package.- App still builds and runs successfully with
run-windows
command.