react-native-jsi-contacts icon indicating copy to clipboard operation
react-native-jsi-contacts copied to clipboard

App crashing on getContactsAsync

Open anwersolangi opened this issue 2 years ago • 3 comments

Hello, thanks for making this library and converting the library into JSI, I've installed the library and after running the example code my app crash immediately. Here is the code below I'm trying with:

  useEffect(() => {
    (async () => {
      const contacts = await getContactsAsync();
      console.log('COntacts => ', contacts);
    })();
  }, []);

anwersolangi avatar Oct 01 '21 09:10 anwersolangi

Have you added the library to your MainActivity (step 2 at installation)

mrousavy avatar Oct 04 '21 12:10 mrousavy

Have you added the library to your MainActivity (step 2 at installation)

Yes I already did, and also using your Vision Camera library and it is working fine, also getHashAsync() method is working fine

anwersolangi avatar Oct 04 '21 15:10 anwersolangi

okay and what's the error message?

mrousavy avatar Oct 05 '21 08:10 mrousavy