Implementation of the dji mobile sdk for react native
npm install react-native-dji-mobile-sdk
Add your API key to your manifest file: android/app/src/main/AndroidManifest.xml
:
<application>
<!-- You will only need to add this meta-data tag, but make sure it's a child of application -->
<meta-data
android:name="com.dji.sdk.API_KEY"
android:value="Your DJI API Key Here"/>
</application>
You can check the /example
folder for a use of the package.
TODO
<DJIVideoView
style={{
flex: 1,
aspectRatio: 16 / 9,
maxHeight: '100%',
maxWidth: '100%',
}}
/>
Video view is not working well on x86 phones dji issue
Mobile SDK 4.7 and later versions are incompatible with x86 devices: Since v4.7, Mobile SDK has included FFMpeg lib to provide the transcoded video feed, but FFMpeg x86 so files will lead to the runtime crash when the target API of APP is larger than 23(included).
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library