vinzscam/react-native-file-viewer

null is not an object (evaluating 'RNFileViewer.open')

Blackoutseeker opened this issue · 4 comments

I am getting this error when i try to open an PDF file on the user's Android. This is a native lib? Cuz i'm using Expo...

I'm getting this as well. Is there any documentation for how to use this with Expo? Any differences worth knowing about?

Try linking it.

My React Native CLI have auto linking.

Hi @Blackoutseeker. In your case, you need to eject your expo project, switching to the Bare workflow.