Skip to content
This repository was archived by the owner on Jun 24, 2021. It is now read-only.

Commit 6720192

Browse files
author
Tobias Eisenschenk
committed
fix: complete info in podfile and update readme for its use
1 parent cbc818a commit 6720192

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,18 @@ import { SelectableText } from "react-native-selectable-text";
4141

4242
### Manual installation
4343

44-
#### iOS
44+
#### iOS - Binary Linking (Alternative 1)
4545

4646
1. In XCode, in the project navigator, right click `Libraries``Add Files to [your project's name]`
4747
2. Go to `node_modules``@astrocoders/react-native-selectable-text` and add `RNSelectableText.xcodeproj`
4848
3. In XCode, in the project navigator, select your project. Add `libRNSelectableText.a` to your project's `Build Phases``Link Binary With Libraries`
4949
4. Run your project (`Cmd+R`)<
5050

51+
#### iOS - Pods (Alternative 2)
52+
53+
1. Add `pod 'RNSelectableText', :path => '../node_modules/@astrocoders/react-native-selectable-text/ios/RNSelectableText.podspec'` to your projects podfile
54+
2. run `pod install`
55+
5156
#### Android
5257

5358
1. Open up `android/app/src/main/java/[...]/MainActivity.java`

ios/RNSelectableText.podspec

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
21
Pod::Spec.new do |s|
32
s.name = "RNSelectableText"
43
s.version = "1.0.0"
54
s.summary = "RNSelectableText"
65
s.description = <<-DESC
76
RNSelectableText
87
DESC
9-
s.homepage = ""
8+
s.homepage = "https://github.com/Astrocoders/react-native-selectable-text"
109
s.license = "MIT"
1110
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
1211
s.author = { "author" => "[email protected]" }
1312
s.platform = :ios, "7.0"
1413
s.source = { :git => "https://github.com/author/RNSelectableText.git", :tag => "master" }
15-
s.source_files = "RNSelectableText/**/*.{h,m}"
14+
s.source_files = "RNSelectableText*.{h,m}"
1615
s.requires_arc = true
1716

1817

1918
s.dependency "React"
2019
#s.dependency "others"
2120

2221
end
23-
24-

0 commit comments

Comments
 (0)