priteshrnandgaonkar / react-native-call-detection

react-native package to detect call states
MIT License
191 stars 110 forks source link

NativeModules.CallDetectionManagerAndroid is null #82

Closed klishinoleg closed 3 years ago

klishinoleg commented 3 years ago

const NativeCallDetector = NativeModules.CallDetectionManager const NativeCallDetectorAndroid = NativeModules.CallDetectionManagerAndroid

in \node_modules\react-native-call-detection\index.js

Constants is empty. What do i do wrong?

maikenunes commented 3 years ago

Hey @klishinoleg!

https://github.com/priteshrnandgaonkar/react-native-call-detection/pull/83 My PR should fix this issue.

Let me know if you need any help.

klishinoleg commented 3 years ago

should this work in expo?

maikenunes commented 3 years ago

should this work in expo?

I think so, but I didn't test it there though.

marcesengel commented 3 years ago

@klishinoleg does Expo support native modules? I think it doesn't, henceforth this module shouldn't work in there as well.

klishinoleg commented 3 years ago

I'll try soon, but I think only in bare mode after ejecting.