You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-5
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# `@react-native-community/segmented-control`
2
2
3
-
![Supports iOS and Android][support-badge]![CircleCI branch][circle-ci-badge]![npm][npm-badge][![Lean Core Extracted][lean-core-badge]][lean-core-issue]
3
+
![Supports iOS and Android and Web][support-badge]![CircleCI branch][circle-ci-badge]![npm][npm-badge][![Lean Core Extracted][lean-core-badge]][lean-core-issue]
4
4
5
5
React Native SegmentedControl library. Use SegmentedControl to render a UISegmentedControl iOS.
The package is [automatically linked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) when building the app. All you need to do is:
32
32
33
-
- React Native <= 0.59
33
+
```sh
34
+
npx pod-install
35
+
```
36
+
37
+
For android, no linking is needed, as the module is implemented in js.
38
+
39
+
<details>
40
+
<summary>For React Native version 0.59 or older</summary>
41
+
### React Native <= 0.59
34
42
35
43
run `react-native link @react-native-community/segmented-control`
36
44
@@ -42,6 +50,8 @@ New React Native comes with `autolinking` feature, which automatically links Nat
This module was created when the segmentedControlIos was split out from the core of React Native. To migrate to this module you need to follow the installation instructions above and then change you imports from:
@@ -167,7 +177,7 @@ The labels for the control's segment buttons, in order.
0 commit comments