forked from gardencoder-zz/react-native-paytabs-library
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rami
committed
Dec 16, 2019
1 parent
5be729e
commit 207114f
Showing
6 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
|
||
# react-native-paytabs-library | ||
![Version](https://img.shields.io/badge/Paytabs%20React%20Native%20library-v1.0.3-green) | ||
![Version](https://img.shields.io/badge/Paytabs%20React%20Native%20library-v1.0.4-green) | ||
## Getting started | ||
|
||
`$ npm install @gardencoder/[email protected].3 --save` | ||
`$ npm install @paytabscom/[email protected].4 --save` | ||
|
||
### Step 1: Link Library | ||
|
||
`$ react-native link @gardencoder/[email protected].3` | ||
`$ react-native link @paytabscom/[email protected].4` | ||
|
||
OR Manual installation | ||
|
||
#### iOS | ||
|
||
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]` | ||
2. Go to `node_modules` ➜ `@gardencoder/react-native-paytabs-library` and add `RNPaytabsLibrary.xcodeproj` | ||
2. Go to `node_modules` ➜ `@paytabscom/react-native-paytabs-library` and add `RNPaytabsLibrary.xcodeproj` | ||
3. In XCode, in the project navigator, select your project. Add `libRNPaytabsLibrary.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` | ||
4. Run your project (`Cmd+R`)< | ||
|
||
|
@@ -25,12 +25,12 @@ OR Manual installation | |
- Add `new RNPaytabsLibraryPackage()` to the list returned by the `getPackages()` method | ||
2. Append the following lines to `android/settings.gradle`: | ||
```groovy | ||
include ':@gardencoder/react-native-paytabs-library@1.0.3' | ||
project(':@gardencoder/react-native-paytabs-library@1.0.3').projectDir = new File(rootProject.projectDir, '../node_modules/@gardencoder/react-native-paytabs-library@1.0.3/android') | ||
include ':@paytabscom/react-native-paytabs-library@1.0.4' | ||
project(':@paytabscom/react-native-paytabs-library@1.0.4').projectDir = new File(rootProject.projectDir, '../node_modules/@paytabscom/react-native-paytabs-library@1.0.4/android') | ||
``` | ||
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`: | ||
```groovy | ||
compile project(':@gardencoder/react-native-paytabs-library@1.0.3') | ||
compile project(':@paytabscom/react-native-paytabs-library@1.0.4') | ||
``` | ||
|
||
### Step 2: | ||
|
@@ -51,7 +51,7 @@ OR Manual installation | |
|
||
## Usage | ||
```javascript | ||
import RNPaytabsLibrary from '@gardencoder/react-native-paytabs-library'; | ||
import RNPaytabsLibrary from '@paytabscom/react-native-paytabs-library'; | ||
|
||
RNPaytabsLibrary.start({ | ||
[RNPaytabsLibrary.merchant_email]: "merchant_email", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "RNPaytabsLibrary" | ||
s.version = "1.0.2" | ||
s.version = "1.0.4" | ||
s.summary = "RNPaytabsLibrary" | ||
s.description = <<-DESC | ||
RNPaytabsLibrary | ||
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s| | |
s.license = "MIT" | ||
s.author = { "author" => "[email protected]" } | ||
s.platform = :ios, "7.0" | ||
s.source = { :git => "https://github.com/gardencoder/react-native-paytabs-library.git", :tag => "master" } | ||
s.source = { :git => "https://github.com/paytabscom/react-native-paytabs-library.git", :tag => "master" } | ||
s.source_files = "RNPaytabsLibrary/**/*.{h,m}" | ||
s.requires_arc = true | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters