1.0.0 • Published 8 years ago

react-native-axmall-alipay v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

react-native-alipay

具体要求请修改 /android/src/main/java/com/alipay/AlipayModule.java 文件

Installation

npm install react-native-alipay@latest --save
react-native link react-native-alipay
  • register module (in MainActivity.java)
import com.alipay.AlipayPackage;  // <--- import
 public class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {
    ...
    private AlipayPackage alipay;
    ...
    protected void onCreate(Bundle savedInstanceState) {
      ...
      alipay = new AlipayPackage(this);
      ...
      mReactInstanceManager = ReactInstanceManager.builder()
        ...
        .addPackage(alipay)
      }  
    ...
  }