Skip to content

Commit 1741312

Browse files
committed
feat: rename package to @omarsdev/react-native-contacts and update usages
1 parent d3b0114 commit 1741312

5 files changed

Lines changed: 10 additions & 11 deletions

File tree

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# react-native-contacts-last-updated
1+
# @omarsdev/react-native-contacts
22

33
Contacts at scale for React Native, with fast first-run paging and efficient “delta since last sync” on Android and iOS.
44

@@ -14,10 +14,10 @@ Install
1414

1515
```sh
1616
# with Yarn
17-
yarn add react-native-contacts-last-updated
17+
yarn add @omarsdev/react-native-contacts
1818

1919
# with npm
20-
npm install react-native-contacts-last-updated
20+
npm install @omarsdev/react-native-contacts
2121
```
2222

2323
Permissions
@@ -88,10 +88,7 @@ API reference (JS)
8888
Quick start
8989

9090
```ts
91-
import {
92-
streamAll,
93-
streamUpdatedFromPersisted,
94-
} from 'react-native-contacts-last-updated'
91+
import { streamAll, streamUpdatedFromPersisted } from '@omarsdev/react-native-contacts'
9592
import { ensureContactsPermission } from './permissions' // from snippet above
9693
9794
// First run: baseline in chunks (paged)
@@ -141,7 +138,7 @@ Build & development
141138
- `cd example/ios && pod install`
142139
- `cd .. && yarn ios`
143140
- Using in your app:
144-
- `yarn add react-native-contacts-last-updated`
141+
- `yarn add @omarsdev/react-native-contacts`
145142
- iOS: `cd ios && pod install`
146143
- Rebuild the app
147144

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build:ios": "react-native build-ios --mode Debug"
1111
},
1212
"dependencies": {
13+
"@omarsdev/react-native-contacts": "workspace:*",
1314
"@react-native/new-app-screen": "0.81.1",
1415
"react": "19.1.0",
1516
"react-native": "0.81.1",

example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
getUpdatedFromPersistedPaged,
1919
commitPersisted,
2020
type Contact,
21-
} from 'react-native-contacts-last-updated';
21+
} from '@omarsdev/react-native-contacts';
2222

2323
type Theme = 'light' | 'dark';
2424

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-native-contacts-last-updated",
2+
"name": "@omarsdev/react-native-contacts",
33
"version": "0.1.0",
44
"description": "Access the device address book and track when contacts were last touched.",
55
"main": "./lib/module/index.js",
@@ -56,6 +56,7 @@
5656
},
5757
"homepage": "https://github.com/omarsdev/react-native-contacts-last-updated#readme",
5858
"publishConfig": {
59+
"access": "public",
5960
"registry": "https://registry.npmjs.org/"
6061
},
6162
"devDependencies": {

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-contacts-last-updated": ["./src/index"]
5+
"@omarsdev/react-native-contacts": ["./src/index"]
66
},
77
"allowUnreachableCode": false,
88
"allowUnusedLabels": false,

0 commit comments

Comments
 (0)