Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ yarn add react-native-sha256
react-native link
```

## Adding with CocoaPods

Add the RNSha256 pod to your list of application pods in your Podfile, using the path from the Podfile to the installed module:

```
pod 'RNSha256', :path => '../node_modules/react-native-sha256'
```

Install pods as usual:
```
pod install
```

# Usage

Import the lib into your project:
Expand Down
21 changes: 21 additions & 0 deletions RNSha256.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require "json"

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

Pod::Spec.new do |s|
s.name = 'RNSha256'
s.version = package["version"]
s.summary = package["description"]
s.author = package["author"]

s.homepage = package["homepage"]

s.license = package["license"]
s.platform = :ios, "8.0"

s.source = { :git => "https://github.com/itinance/react-native-sha256.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,swift}"
s.preserve_paths = "**/*.js"

s.dependency 'React'
end
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"flow": "flow; test $? -eq 0 -o $? -eq 2"
},
"homepage": "https://github.com/itinance/react-native-sha256",
"repository": {
"type": "git",
"url": "git@github.com:itinance/react-native-sha256.git"
Expand Down