morenoh149 / react-native-contacts

React Native Contacts
MIT License
1.64k stars 560 forks source link

revert `package.json` to get types from `index.d.ts` #754

Open Ahmedhamed77 opened 2 hours ago

Ahmedhamed77 commented 2 hours ago

since the last pr of migrating new_arch now to import types we have to get it from type.is and to import the functions we have to get it from index.d.ts

import Contact  from 'react-native-contacts';

import { Contact } from 'react-native-contacts/type';

I believe since we already have an index.d.ts we don't need an extra path here and import everything from one file so it will look like this

 import Contact, {Contact,UrlAddress}  from 'react-native-contacts';