Skip to content

Commit 1de216a

Browse files
committed
chore: rename package
1 parent 88538d1 commit 1de216a

4 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
node-version: 20
2626
registry-url: https://registry.npmjs.org/
2727
- run: npm ci
28-
- run: npm publish
28+
- run: npm publish --access public
2929
env:
3030
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<br>
1616

1717
<div align="center">
18-
<a href="https://www.npmjs.com/package/react-native-country-select">
19-
<img src="https://img.shields.io/npm/v/react-native-country-select.svg?style=flat-square">
18+
<a href="https://www.npmjs.com/package/rn-country-select">
19+
<img src="https://img.shields.io/npm/v/rn-country-select.svg?style=flat-square">
2020
</a>
21-
<a href="https://www.npmjs.com/package/react-native-country-select">
22-
<img src="https://img.shields.io/npm/dt/react-native-country-select.svg?style=flat-square&color=success">
21+
<a href="https://www.npmjs.com/package/rn-country-select">
22+
<img src="https://img.shields.io/npm/dt/rn-country-select.svg?style=flat-square&color=success">
2323
</a>
2424
<a href="https://github.com/AstrOOnauta/react-native-country-select">
2525
<img src="https://img.shields.io/github/stars/AstrOOnauta/react-native-country-select?style=flat-square&color=success"/>
@@ -59,16 +59,16 @@
5959

6060
## Try it out
6161

62-
- [Demo](https://snack.expo.dev/@astroonauta/react-native-country-select)
62+
- [Demo](https://snack.expo.dev/rn-country-select)
6363

6464
<br>
6565

6666
## Installation
6767

68-
To use this library, make sure you have **react-native-country-select** installed along with its required dependency **react-native-safe-area-context**:
68+
To use this library, make sure you have **rn-country-select** installed along with its required dependency **react-native-safe-area-context**:
6969

7070
```bash
71-
npm install react-native-country-select react-native-safe-area-context
71+
npm install rn-country-select react-native-safe-area-context
7272
```
7373

7474
Since **react-native-safe-area-context** includes native code, you’ll need to install the iOS pods on macOS to complete the linking:
@@ -92,7 +92,7 @@ module.exports = {
9292
android: {},
9393
},
9494
assets: [
95-
'./node_modules/react-native-country-select/lib/assets/fonts',
95+
'./node_modules/rn-country-select/lib/assets/fonts',
9696
],
9797
};
9898
```
@@ -114,7 +114,7 @@ npx react-native-asset
114114
...
115115

116116
useFonts({
117-
'TwemojiMozilla': require('./node_modules/react-native-country-select/lib/assets/fonts/TwemojiMozilla.woff2'),
117+
'TwemojiMozilla': require('./node_modules/rn-country-select/lib/assets/fonts/TwemojiMozilla.woff2'),
118118
});
119119

120120
...
@@ -131,7 +131,7 @@ npx react-native-asset
131131
```jsx
132132
import React, { Component } from 'react';
133133
import { Text, TouchableOpacity, View } from 'react-native';
134-
import CountrySelect from 'react-native-country-select';
134+
import CountrySelect from 'rn-country-select';
135135

136136
export default class App extends Component {
137137
countryRef = null;
@@ -180,7 +180,7 @@ export default class App extends Component {
180180
import React, { useState } from 'react';
181181
import { Text, TouchableOpacity, View } from 'react-native';
182182

183-
import CountrySelect from 'react-native-country-select';
183+
import CountrySelect from 'rn-country-select';
184184

185185
export default function App() {
186186
const [showPicker, setShowPicker] = useState(false);
@@ -222,7 +222,7 @@ export default function App() {
222222
import React, { useState } from 'react';
223223
import { Text, TouchableOpacity, View } from 'react-native';
224224

225-
import CountrySelect, { ICountry } from 'react-native-country-select';
225+
import CountrySelect, { ICountry } from 'rn-country-select';
226226

227227
export default function App() {
228228
const [showPicker, setShowPicker] = useState<boolean>(false);
@@ -265,7 +265,7 @@ export default function App() {
265265
import React, { useState } from 'react';
266266
import { Text, TouchableOpacity, View } from 'react-native';
267267

268-
import CountrySelect, { ICountry } from 'react-native-country-select';
268+
import CountrySelect, { ICountry } from 'rn-country-select';
269269

270270
export default function App() {
271271
const [showPicker, setShowPicker] = useState<boolean>(false);
@@ -465,7 +465,7 @@ Ensure your app is inclusive and usable by everyone by leveraging built-in React
465465
466466
## Contributing
467467
468-
Thank you for considering contributing to **react-native-country-select**!
468+
Thank you for considering contributing to **rn-country-select**!
469469
470470
- Fork or clone this repository
471471

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "react-native-country-select",
2+
"name": "rn-country-select",
33
"version": "0.4.0",
44
"description": "🌍 React Native country picker with flags, search, TypeScript, i18n, and offline support. Lightweight, customizable, and designed with a modern UI.",
55
"main": "lib/index.tsx",
66
"types": "lib/index.d.ts",
77
"keywords": [
88
"react-native-country-picker",
9-
"react-native-country-select",
9+
"rn-country-select",
1010
"react-native-country-codes",
1111
"country-picker",
1212
"country-select",

0 commit comments

Comments
 (0)