gbumps / react-native-screenguard

A Native screenshot blocking library for React-Native developer, with background customizable after captured. Screenshot detector are also supported.
https://gbumps.github.io/react-native-screenguard/
MIT License
231 stars 28 forks source link

TypeError: Cannot read property 'activateShield' of null #76

Closed komilovsg closed 4 weeks ago

komilovsg commented 1 month ago

When i try to import ScreenGuardModule from react-native-screenguard it gives me error like this Cannot read property 'activateShield' of null

Inayat567 commented 1 month ago

run:

yarn android / npm run android (for android to link library)
cd ios; pod install; cd ../ (for ios to link library)
gbumps commented 4 weeks ago

@komilovsg if you are installing the lib from Expo project, then you need eject Expo 1st. If react-native below 0.60, remember to run 'react-native link' before proceed.

Reference expo here Linking here

Thanks and happy hacking!