react-native-market
v1.0.8
Published
react-native打开本机应用市场进行更新,支持ios和安卓
Downloads
4
Readme
react-native-market支持react-native0.63.4及以上
Getting started
$ npm install react-native-market --save或yarn add react-native-market
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.zyh.market.RNMarketPackage;
to the imports at the top of the file - Add
new RNMarketPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-market' project(':react-native-market').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-market/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-market')
Usage
import openAppStore from 'react-native-market';
// TODO: What to do with the module?
RNMarket;