miniappmanager

Manager miniapp

Usage no npm install needed!

<script type="module">
  import miniappmanager from 'https://cdn.skypack.dev/miniappmanager';
</script>

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

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-miniappmanager and add RNMiniappmanager.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNMiniappmanager.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Cocoapod

  1. add pod 'RNMiniappmanager', :path => '../node_modules/react-native-miniappmanager'
  2. run pod install in ios directory

Android

  1. 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 the getPackages() method
  1. 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')
    
  2. 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;