Skip to content

Commit ea5297b

Browse files
committed
chore: change package to @commandbar/react-native
1 parent 71369e8 commit ea5297b

File tree

7 files changed

+58
-57
lines changed

7 files changed

+58
-57
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ React Native CommandBar was built as a wrapper around [CommandBarIOS](https://gi
1313
## Installation
1414

1515
```sh
16-
yarn add react-native-commandbar
16+
yarn add @commandbar/react-native
1717
```
1818

1919
```sh
20-
npm install react-native-commandbar
20+
npm install @commandbar/react-native
2121
```
2222

2323
## Usage

example/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-commandbar-example",
2+
"name": "@commandbar/react-native-example",
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {

example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import { StyleSheet, View } from 'react-native';
3-
import { HelpHubView } from 'react-native-commandbar';
3+
import { HelpHubView } from '@commandbar/react-native';
44

55
const commandbarOptions = { orgId: 'your_org_id', spinnerColor: '#7B64C3' };
66

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-native-commandbar",
2+
"name": "@commandbar/react-native",
33
"version": "1.0.0",
44
"description": "Copilot & HelpHub in React Native",
55
"main": "lib/commonjs/index",
@@ -26,7 +26,7 @@
2626
"!**/.*"
2727
],
2828
"scripts": {
29-
"example": "yarn workspace react-native-commandbar-example",
29+
"example": "yarn workspace @commandbar/react-native-example",
3030
"test": "jest",
3131
"typecheck": "tsc --noEmit",
3232
"lint": "eslint \"**/*.{js,ts,tsx}\"",
@@ -40,14 +40,15 @@
4040
"android"
4141
],
4242
"repository": "https://github.com/tryfoobar/react-native-commandbar",
43-
"author": "CommandBar Engineering <eng@commandbar.com> (https://github.com/tryfoobar)",
43+
"author": "CommandBar Team <team@commandbar.com> (https://github.com/tryfoobar)",
4444
"license": "MIT",
4545
"bugs": {
4646
"url": "https://github.com/tryfoobar/react-native-commandbar/issues"
4747
},
4848
"homepage": "https://github.com/tryfoobar/react-native-commandbar#readme",
4949
"publishConfig": {
50-
"registry": "https://registry.npmjs.org/"
50+
"registry": "https://registry.npmjs.org/",
51+
"access": "public"
5152
},
5253
"devDependencies": {
5354
"@commitlint/config-conventional": "^17.0.2",

src/CommandBar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type CommandBarOptions = {
1010

1111
// Define type for the LINKING_ERROR constant
1212
const LINKING_ERROR: string =
13-
`The package 'react-native-commandbar' doesn't seem to be linked. Make sure: \n\n` +
13+
`The package '@commandbar/react-native' doesn't seem to be linked. Make sure: \n\n` +
1414
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
1515
'- You rebuilt the app after installing the package\n' +
1616
'- You are not using Expo Go\n';

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"rootDir": ".",
44
"paths": {
5-
"react-native-commandbar": ["./src/index"]
5+
"@commandbar/react-native": ["./src/index"]
66
},
77
"allowUnreachableCode": false,
88
"allowUnusedLabels": false,

yarn.lock

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,6 +1664,53 @@ __metadata:
16641664
languageName: node
16651665
linkType: hard
16661666

1667+
"@commandbar/react-native-example@workspace:example":
1668+
version: 0.0.0-use.local
1669+
resolution: "@commandbar/react-native-example@workspace:example"
1670+
dependencies:
1671+
"@babel/core": ^7.20.0
1672+
"@babel/preset-env": ^7.20.0
1673+
"@babel/runtime": ^7.20.0
1674+
"@react-native/metro-config": ^0.72.11
1675+
babel-plugin-module-resolver: ^5.0.0
1676+
metro-react-native-babel-preset: 0.76.8
1677+
pod-install: ^0.1.0
1678+
react: 18.2.0
1679+
react-native: 0.72.6
1680+
languageName: unknown
1681+
linkType: soft
1682+
1683+
"@commandbar/react-native@workspace:.":
1684+
version: 0.0.0-use.local
1685+
resolution: "@commandbar/react-native@workspace:."
1686+
dependencies:
1687+
"@commitlint/config-conventional": ^17.0.2
1688+
"@evilmartians/lefthook": ^1.5.0
1689+
"@react-native/eslint-config": ^0.72.2
1690+
"@release-it/conventional-changelog": ^5.0.0
1691+
"@types/jest": ^28.1.2
1692+
"@types/react": ~17.0.21
1693+
"@types/react-native": 0.70.0
1694+
commitlint: ^17.0.2
1695+
del-cli: ^5.0.0
1696+
eslint: ^8.4.1
1697+
eslint-config-prettier: ^8.5.0
1698+
eslint-plugin-prettier: ^4.0.0
1699+
jest: ^28.1.1
1700+
pod-install: ^0.1.0
1701+
prettier: ^2.0.5
1702+
react: 18.2.0
1703+
react-native: 0.72.6
1704+
react-native-builder-bob: ^0.23.1
1705+
release-it: ^15.0.0
1706+
turbo: ^1.10.7
1707+
typescript: ^5.0.2
1708+
peerDependencies:
1709+
react: "*"
1710+
react-native: "*"
1711+
languageName: unknown
1712+
linkType: soft
1713+
16671714
"@commitlint/cli@npm:^17.8.1":
16681715
version: 17.8.1
16691716
resolution: "@commitlint/cli@npm:17.8.1"
@@ -10898,53 +10945,6 @@ __metadata:
1089810945
languageName: node
1089910946
linkType: hard
1090010947

10901-
"react-native-commandbar-example@workspace:example":
10902-
version: 0.0.0-use.local
10903-
resolution: "react-native-commandbar-example@workspace:example"
10904-
dependencies:
10905-
"@babel/core": ^7.20.0
10906-
"@babel/preset-env": ^7.20.0
10907-
"@babel/runtime": ^7.20.0
10908-
"@react-native/metro-config": ^0.72.11
10909-
babel-plugin-module-resolver: ^5.0.0
10910-
metro-react-native-babel-preset: 0.76.8
10911-
pod-install: ^0.1.0
10912-
react: 18.2.0
10913-
react-native: 0.72.6
10914-
languageName: unknown
10915-
linkType: soft
10916-
10917-
"react-native-commandbar@workspace:.":
10918-
version: 0.0.0-use.local
10919-
resolution: "react-native-commandbar@workspace:."
10920-
dependencies:
10921-
"@commitlint/config-conventional": ^17.0.2
10922-
"@evilmartians/lefthook": ^1.5.0
10923-
"@react-native/eslint-config": ^0.72.2
10924-
"@release-it/conventional-changelog": ^5.0.0
10925-
"@types/jest": ^28.1.2
10926-
"@types/react": ~17.0.21
10927-
"@types/react-native": 0.70.0
10928-
commitlint: ^17.0.2
10929-
del-cli: ^5.0.0
10930-
eslint: ^8.4.1
10931-
eslint-config-prettier: ^8.5.0
10932-
eslint-plugin-prettier: ^4.0.0
10933-
jest: ^28.1.1
10934-
pod-install: ^0.1.0
10935-
prettier: ^2.0.5
10936-
react: 18.2.0
10937-
react-native: 0.72.6
10938-
react-native-builder-bob: ^0.23.1
10939-
release-it: ^15.0.0
10940-
turbo: ^1.10.7
10941-
typescript: ^5.0.2
10942-
peerDependencies:
10943-
react: "*"
10944-
react-native: "*"
10945-
languageName: unknown
10946-
linkType: soft
10947-
1094810948
"react-native@npm:0.72.6":
1094910949
version: 0.72.6
1095010950
resolution: "react-native@npm:0.72.6"

0 commit comments

Comments
 (0)