Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/szq4119/react-native-alipay
https://github.com/szq4119/react-native-alipay
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/szq4119/react-native-alipay
- Owner: szq4119
- Created: 2016-01-18T08:22:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-18T09:15:08.000Z (about 9 years ago)
- Last Synced: 2024-11-16T02:08:42.803Z (2 months ago)
- Language: Java
- Size: 12.4 MB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-react-native - react-native-axmall-alipay ★7 - react-native alipay (Components / Integrations)
- awesome-react-native - react-native-axmall-alipay ★7 - react-native alipay (Components / Integrations)
- awesome-react-native - react-native-axmall-alipay ★7 - react-native alipay (Components / Integrations)
- awesome-react-native-ui - react-native-axmall-alipay ★5 - react-native alipay (Components / Integrations)
- awesome-react-native - react-native-axmall-alipay ★7 - react-native alipay (Components / Integrations)
README
# react-native-alipay
具体要求请修改 /android/src/main/java/com/alipay/AlipayModule.java 文件
## Installation
```bash
npm install react-native-alipay@latest --save
``````bash
react-native link react-native-alipay
```* register module (in MainActivity.java)
```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)
}
...
}
```