Skip to content

Commit a862cd0

Browse files
Update README.md
Co-Authored-By: Jesse Katsumata <[email protected]>
1 parent 8d7c1e2 commit a862cd0

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,23 @@ or npm:
2020
npm install --save @react-native-community/segmented-control
2121
```
2222

23-
Then you will need to link it to your project. You can follow the [manual linking](https://facebook.github.io/react-native/docs/linking-libraries-ios#manual-linking) instructions for that.
23+
## Link
24+
25+
- React Native 0.60+
26+
27+
run `cd ios && pod install`
28+
29+
- React Native <= 0.59
30+
31+
run `react-native link @react-native-community/segmented-control`
32+
33+
or you can follow the instructions to [manually link this package](https://facebook.github.io/react-native/docs/linking-libraries-ios#manual-linking).
34+
35+
## Upgrading to React Native _0.60+_
36+
37+
New React Native comes with `autolinking` feature, which automatically links Native Modules in your project. In order to get it to work, make sure you unlink `Segmented Control` first:
38+
39+
`react-native unlink @react-native-community/segmented-control`
2440

2541
## Migrating from the core `react-native` module
2642

0 commit comments

Comments
 (0)