react-native-hly-wbcloud-face-sdk
v1.0.0
Published
<!-- * @Author: OBKoro1 * @Date: 2020-05-14 16:48:24 * @LastEditors: OBKoro1 * @LastEditTime: 2020-07-31 10:35:09 * @Description: -->
Downloads
49
Maintainers
Readme
react-native-hly-wbcloud-face-sdk
Getting started
$ npm install react-native-hly-wbcloud-face-sdk --save
Mostly automatic installation
$ react-native link react-native-hly-wbcloud-face-sdk
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-hly-wbcloud-face-sdk
and addRNReactNativeWbcloudFaceSdk.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNReactNativeWbcloudFaceSdk.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNReactNativeWbcloudFaceSdkPackage;
to the imports at the top of the file - Add
new RNReactNativeWbcloudFaceSdkPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-hly-wbcloud-face-sdk' project(':react-native-hly-wbcloud-face-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-hly-wbcloud-face-sdk/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-hly-wbcloud-face-sdk')
Windows
- In Visual Studio add the
RNReactNativeWbcloudFaceSdk.sln
innode_modules/react-native-hly-wbcloud-face-sdk/windows/RNReactNativeWbcloudFaceSdk.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using React.Native.Wbcloud.Face.Sdk.RNReactNativeWbcloudFaceSdk;
to the usings at the top of the file - Add
new RNReactNativeWbcloudFaceSdkPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNReactNativeWbcloudFaceSdk from 'react-native-hly-wbcloud-face-sdk';
// TODO: What to do with the module?
RNReactNativeWbcloudFaceSdk;