Skip to content

Commit c8cc271

Browse files
committed
build(ios): autolinking
aMarCruz#39
1 parent 4234ff3 commit c8cc271

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Mostly automatic installation from npm
4444

4545
```bash
4646
yarn add react-native-text-size
47-
react-native link react-native-text-size
47+
npx pod-install
4848
```
4949

5050
**Requirements:**
@@ -54,8 +54,6 @@ react-native link react-native-text-size
5454

5555
For versions prior to 0.56 of React Native, please use [react-native-text-size v2.1.1](https://www.npmjs.com/package/react-native-text-size/v/2.1.1)
5656

57-
See [Manual Installation][2] on the Wiki as an alternative if you have problems with automatic installation.
58-
5957
## API
6058

6159
- [`measure`](#measure)

ios/RNTextSize.podspec renamed to RNTextSize.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'json'
2-
package = JSON.parse(File.read('../package.json'))
2+
package = JSON.parse(File.read('./package.json'))
33

44
Pod::Spec.new do |s|
55
s.name = 'RNTextSize'
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
1414
s.author = package['author']
1515
s.platform = :ios, '9.0'
1616
s.source = { :git => package['repository'], :tag => "v#{s.version}" }
17-
s.source_files = '*.{h,m}'
17+
s.source_files = 'ios/*.{h,m}'
1818
s.requires_arc = true
1919

2020
s.dependency 'React'

0 commit comments

Comments
 (0)