File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ __Note for iOS:__ If your react-native version < 0.40 install with this tag inst
1818```
1919npm install react-native-tcp@3.1.0 --save
2020```
21+ ## if using Cocoapods
22+
23+ Update the following line with your path to ` node_modules/ ` and add it to your
24+ podfile:
25+
26+ ``` ruby
27+ pod ' TcpSockets' , :path => ' ../node_modules/react-native-tcp'
28+ ```
2129
2230## Link in the native dependency
2331
Original file line number Diff line number Diff line change 1+ require 'json'
2+
3+ package = JSON . parse ( File . read ( File . join ( __dir__ , 'package.json' ) ) )
4+
5+ Pod ::Spec . new do |s |
6+
7+ s . name = 'TcpSockets'
8+ s . version = package [ 'version' ]
9+ s . summary = package [ 'description' ]
10+ s . homepage = package [ 'repository' ] [ 'url' ]
11+ s . license = package [ 'license' ]
12+ s . author = package [ 'author' ]
13+ s . source = { :git => s . homepage , :tag => 'v#{s.version}' }
14+
15+ s . requires_arc = true
16+ s . ios . deployment_target = '8.0'
17+ s . tvos . deployment_target = '9.0'
18+
19+ s . preserve_paths = 'README.md' , 'package.json' , '**/*.js'
20+ s . source_files = 'ios/**/*.{h,m}'
21+ s . dependency 'React'
22+
23+ end
You can’t perform that action at this time.
0 commit comments