Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 27f9482 Jan 18, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android delete Jan 18, 2016
Alipay.js
README.md Create README.md Jan 18, 2016
package.json first commit Jan 18, 2016

README.md

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)
      }  
    ...
  }
You can’t perform that action at this time.