React-native-document-picker: Cannot read property 'show' of undefined

Created on 9 Oct 2017  路  11Comments  路  Source: rnmods/react-native-document-picker

Here is the code snippet: http://codepad.org/3Ix8sZeN

Most helpful comment

I encountered this problem in two different ios projects after trying to automatically link. solution both times was to manually link.

All 11 comments

This package exports NativeModules.RNDocumentPicker as DocumentPicker, so you are 99.99% guaranteed your issue is just that you have not finished linking the native code and rebuilding the native portion of your app.

The problem has been solved!

@uraniumreza, how did you solve it?

@mromarreyes I didn't add permission for _WRITE_EXTERNAL_STORAGE_!

@uraniumreza So your error was on android? I'm having the issue with iOS. Did you have any issues with iOS?

@mromarreyes actually I didn't try this for IOS!

I'm having this issue but I'm using CRNA not react native. Do I still need to do all the linking part ?

CRNA doesn't magically make is so you don't have to link anything. All packages with native code need to be linked in order to work.

yeah I saw I should eject my CRNA in order to use components with native code.

I encountered this problem in two different ios projects after trying to automatically link. solution both times was to manually link.

@alexzobi thank you. It works perfectly with manual linking.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FrankFundel picture FrankFundel  路  5Comments

obstruction6761 picture obstruction6761  路  6Comments

johuder33 picture johuder33  路  5Comments

vsrinivas150283 picture vsrinivas150283  路  3Comments

MuneebJS picture MuneebJS  路  5Comments