Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

react-native-dji-mobile-sdk

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-dji-mobile-sdk

test

latest
Source
npmnpm
Version
0.2.25
Version published
Maintainers
1
Created
Source

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

How to generate your 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

Keywords

react-native

FAQs

Package last updated on 20 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts