Skip to content

Commit

Permalink
Add autolink react-native > 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
magrinj committed Feb 28, 2020
1 parent 798482b commit d39af1a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 57 deletions.
27 changes: 1 addition & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

![rsz_ios-103-beta-1-note-application](https://cloud.githubusercontent.com/assets/3551795/25345288/f78ff17e-2914-11e7-9939-8d2f6897bf7e.jpg)


This library allow you to print the new iOS 10.3 rate pop-up.
If your users use a version of iOS higher than 8.0 but lesser than 10.3 a new view within the app is pushed with the app store page of your app.
And if your user got an iOS version lesser than 8.0, it will be redirected on the app store in the write review section of your app.
Expand All @@ -12,31 +11,7 @@ And if your user got an iOS version lesser than 8.0, it will be redirected on th

`$ npm install react-native-app-store-review --save`

### Mostly automatic installation

```
cd ios
```

Add this line to ios/Podfile
```
pod 'RNAppStoreReview', :path => '../node_modules/react-native-app-store-review'
```

Run this
```
pod install
```

### 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``react-native-app-store-review` and add `RNAppStoreReview.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNAppStoreReview.a` to your project's `Build Phases``Link Binary With Libraries`
4. Run your project (`Cmd+R`)<
`$ cd ios && pod install`

## Usage
```javascript
Expand Down
22 changes: 0 additions & 22 deletions RNAppStoreReview.podspec

This file was deleted.

12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/magrinj/react-native-app-store-review.git"
"url": "git+https://github.com/github_account/react-native-app-store-review.git",
"baseUrl": "https://github.com/github_account/react-native-app-store-review"
},
"keywords": [
"react-native",
Expand All @@ -25,12 +26,19 @@
"reviews",
"rate"
],
"publishConfig": { "registry": "https://npm.pkg.github.com/" },
"files": [
"/ios",
"/index.js",
"/src",
"/*.podspec"
],
"author": {
"email": "[email protected]",
"name": "Jeremy Magrin"
},
"license": "MIT",
"licenseFilename": "LICENSE",
"readmeFilename": "README.md",
"homepage": "https://github.com/magrinj/react-native-app-store-review",
"bugs": {
"url": "https://github.com/magrinj/react-native-app-store-review/issues"
Expand Down
23 changes: 23 additions & 0 deletions react-native-app-store-review.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require "json"

package = JSON.parse(File.read(File.join(__dir__, "package.json")))

Pod::Spec.new do |s|
s.name = "react-native-app-store-review"
s.version = package["version"]
s.summary = package["description"]
s.description = <<-DESC
react-native-app-store-review
DESC
s.homepage = package['homepage']
s.license = "MIT"
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
s.authors = { package["author"]["name"] => package["author"]["email"] }
s.platforms = { :ios => "9.0" }
s.source = { :git => "https://github.com/github_account/react-native-app-store-review.git", :tag => "#{s.version}" }

s.source_files = "ios/**/*.{h,m,swift}"
s.requires_arc = true

s.dependency "React"
end
7 changes: 0 additions & 7 deletions react-native.config.js

This file was deleted.

0 comments on commit d39af1a

Please sign in to comment.