Skip to content

Cannot read property 'version' of undefined #5

@aymericbouzy

Description

@aymericbouzy

I'm getting this error in Android.
It works fine in iOS

Cannot read property 'version' of undefined
Object.getInfoVersion
    index.js:8
<unknown>
    constants.js:17
loadModuleImplementation
    require.js:122
guardedLoadModule
    require.js:65
_require
    require.js:49
<unknown>
    icon.js:4
loadModuleImplementation
    require.js:122
guardedLoadModule
    require.js:65
_require
    require.js:49
<unknown>
    main_app.js:23

Maybe the package isn't linked in Android ? When I ran $ rnpm link react-native-app-info, I got

rnpm-link info Linking react-native-app-info ios dependency 
rnpm-link info iOS module react-native-app-info has been successfully linked 

but nothing about linking Android.

EDIT : I can see that the code has not been released to npm, any plans on doing so ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions