Skip to content

Commit 168e4b5

Browse files
committed
Fixed to support for RN 0.60.0
1 parent 05b97a4 commit 168e4b5

3 files changed

Lines changed: 43 additions & 3 deletions

File tree

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,27 @@ This is the beta but functional Razer Merchant Services React Native payment mod
2727

2828
## Installation
2929

30-
### Android
30+
### Auto link (RN > 0.61.0)
31+
32+
#### Android
33+
34+
1) npm install molpay-mobile-xdk-reactnative-beta
35+
36+
#### iOS
37+
38+
1) npm install molpay-mobile-xdk-reactnative-beta
39+
40+
2) cd ios && pod install && cd ..
41+
42+
3) Add 'App Transport Security Settings > Allow Arbitrary Loads > YES' to the application project info.plist
43+
44+
4) Add 'NSPhotoLibraryUsageDescription' > 'Payment images' to the application project info.plist
45+
46+
5) Add 'NSPhotoLibraryAddUsageDescription' > 'Payment images' to the application project info.plist
47+
48+
### Manual link (RN < 0.60.0)
49+
50+
#### Android
3151

3252
1) npm install molpay-mobile-xdk-reactnative-beta
3353

@@ -83,7 +103,7 @@ change the following codes in your `android/app/src/main/res/values/styles.xml`
83103
</resources>
84104
```
85105

86-
### IOS
106+
#### IOS
87107

88108
1) npm install molpay-mobile-xdk-reactnative-beta
89109

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4+
5+
Pod::Spec.new do |s|
6+
s.name = "molpay-mobile-xdk-reactnative-beta"
7+
s.version = package['version']
8+
s.summary = "Razer Merchant Services mobile payment for React Native (BETA)"
9+
10+
s.authors = { "MOLPay Mobile Team" => "mobile-sa@razer.com" }
11+
s.homepage = "https://github.com/MOLPay/rms-mobile-xdk-reactnative-beta#readme"
12+
s.license = "MIT"
13+
s.platform = :ios, "8.0"
14+
15+
s.source = { :git => "https://github.com/MOLPay/rms-mobile-xdk-reactnative-beta" }
16+
s.source_files = "ios/*.{h,m}"
17+
s.resource = 'ios/MOLPayXDK.bundle'
18+
19+
s.dependency 'React'
20+
end

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "molpay-mobile-xdk-reactnative-beta",
3-
"version": "0.27.0",
3+
"version": "0.27.1",
44
"description": "Razer Merchant Services mobile payment for React Native (BETA)",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)