miniappmanager
v0.0.2
Published
Manager miniapp
Downloads
3
Readme
react-native-miniappmanager
Getting started
$ npm install react-native-miniappmanager --save
React Native > 0.60 you don't need link
$ cd ios && pod install
React Native <0.59 and below
Mostly automatic installation
$ react-native link react-native-miniappmanager
Manual installation
iOS
Without Cocoapod
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-miniappmanager
and addRNMiniappmanager.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNMiniappmanager.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Cocoapod
- add
pod 'RNMiniappmanager', :path => '../node_modules/react-native-miniappmanager'
- run
pod install
inios
directory
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.thanhpcc.miniappmanager.MiniappmanagerPackage;
to the imports at the top of the file - Add
new MiniappmanagerPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-miniappmanager' project(':react-native-miniappmanager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-miniappmanager/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:implementation project(':react-native-miniappmanager')
Usage
import Miniappmanager from "react-native-miniappmanager";
// TODO: What to do with the module?
RNMiniappmanager;