react-native-dji-mobile-sdk
v0.2.25
Published
test
Downloads
47
Readme
react-native-dji-mobile-sdk [WIP]
Implementation of the dji mobile sdk for react native
Installation
npm install react-native-dji-mobile-sdk
Android
Specify your DJI API Key
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>
Usage
You can check the /example
folder for a use of the package.
API refs
TODO
Components
Render the video of the drone:
<DJIVideoView
style={{
flex: 1,
aspectRatio: 16 / 9,
maxHeight: '100%',
maxWidth: '100%',
}}
/>
Known issues
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).
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library