Skip to content

Commit b680665

Browse files
authored
feat: migrate to different namespace (#182)
1 parent 0450e4f commit b680665

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ We use [Semantic Release](http://semantic-release.org) to automatically release
5151

5252
## Reporting issues
5353

54-
You can report issues on our [bug tracker](https://github.com/react-native-community/react-native-segmented-control/issues). Please search for existing issues and follow the issue template when opening an issue.
54+
You can report issues on our [bug tracker](https://github.com/react-native-segmented-control/segmented-control/issues). Please search for existing issues and follow the issue template when opening an issue.
5555

5656
## License
5757

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `@react-native-community/segmented-control`
1+
# `@react-native-segmented-control/segmented-control`
22

33
![Supports iOS and Android and Web][support-badge]![Github Action Badge][gha-badge] ![npm][npm-badge] [![Lean Core Extracted][lean-core-badge]][lean-core-issue]
44

@@ -14,10 +14,10 @@ For Android and Web, it has a js implementation that mocks iOS 13 style of UISeg
1414

1515
## Supported React Native Version
1616

17-
| react-native-segmented-control | react-native |
18-
| --- | --- |
19-
| v2.2.0 | >= 0.62 |
20-
| <= v2.2.0 | >= 0.57 |
17+
| react-native-segmented-control | react-native |
18+
| ------------------------------ | ------------ |
19+
| v2.2.0 | >= 0.62 |
20+
| <= v2.2.0 | >= 0.57 |
2121

2222
This module is NOT supported for expo.
2323

@@ -26,13 +26,13 @@ This module is NOT supported for expo.
2626
Install the library using either Yarn:
2727

2828
```
29-
yarn add @react-native-community/segmented-control
29+
yarn add @react-native-segmented-control/segmented-control
3030
```
3131

3232
or npm:
3333

3434
```
35-
npm install --save @react-native-community/segmented-control
35+
npm install --save @react-native-segmented-control/segmented-control
3636
```
3737

3838
## Link
@@ -51,15 +51,15 @@ For android, no linking is needed, as the module is implemented in js.
5151
<summary>For React Native version 0.59 or older</summary>
5252
### React Native <= 0.59
5353

54-
run `react-native link @react-native-community/segmented-control`
54+
run `react-native link @react-native-segmented-control/segmented-control`
5555

5656
or you can follow the instructions to [manually link this package](https://facebook.github.io/react-native/docs/linking-libraries-ios#manual-linking).
5757

5858
## Upgrading to React Native _0.60+_
5959

6060
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:
6161

62-
`react-native unlink @react-native-community/segmented-control`
62+
`react-native unlink @react-native-segmented-control/segmented-control`
6363

6464
</details>
6565

@@ -74,7 +74,7 @@ import {SegmentedControlIOS} from 'react-native';
7474
to:
7575

7676
```javascript
77-
import SegmentedControl from '@react-native-community/segmented-control';
77+
import SegmentedControl from '@react-native-segmented-control/segmented-control';
7878
```
7979

8080
## Usage
@@ -91,7 +91,7 @@ Note that the state variable would need to be updated as the user
9191
selects a value and changes the index, as shown in the example below.
9292

9393
```javascript
94-
import SegmentedControl from '@react-native-community/segmented-control';
94+
import SegmentedControl from '@react-native-segmented-control/segmented-control';
9595

9696
return (
9797
<SegmentedControl
@@ -239,7 +239,7 @@ Please see the [`contributing guide`](/CONTRIBUTING.md).
239239
The library is released under the MIT licence. For more information see [`LICENSE`](/LICENSE).
240240

241241
[gha-badge]: https://github.com/react-native-segmented-control/segmented-control/workflows/Build/badge.svg
242-
[npm-badge]: https://img.shields.io/npm/v/@react-native-community/segmented-control.svg?style=flat-square
242+
[npm-badge]: https://img.shields.io/npm/v/@react-native-segmented-control/segmented-control.svg?style=flat-square
243243
[lean-core-badge]: https://img.shields.io/badge/Lean%20Core-Extracted-brightgreen.svg?style=flat-square
244244
[lean-core-issue]: https://github.com/facebook/react-native/issues/23313
245245
[support-badge]: https://img.shields.io/badge/platforms-android%20|%20ios%20|%20web-lightgrey.svg?style=flat-square

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@react-native-community/segmented-control",
2+
"name": "@react-native-segmented-control/segmented-control",
33
"version": "2.2.1",
44
"description": "React Native SegmentedControlIOS library",
55
"main": "js/index.js",

react-native-segmented-control.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.homepage = package['homepage']
1313
s.platform = :ios, "9.0"
1414

15-
s.source = { :git => "https://github.com/react-native-community/react-native-segmented-control.git", :tag => "#{s.version}" }
15+
s.source = { :git => "https://github.com/react-native-segmented-control/segmented-control.git", :tag => "#{s.version}" }
1616
s.source_files = "ios/**/*.{h,m}"
1717

1818
s.dependency 'React-Core'

0 commit comments

Comments
 (0)