Android Issue

While running:

console.log("App Version", DeviceInfo.getVersion());

I get this error:

Error TypeError: Cannot read property 'appVersion' of undefined
    at Object.module.exports.getVersion (http://localhost:8081/index.android.bundle?platform=android&dev=true:57139:20)
    at React.createClass.render (http://localhost:8081/index.android.bundle?platform=android&dev=true:1301:38)
    at ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (http://localhost:8081/index.android.bundle?platform=android&dev=true:13067:28)
    at ReactCompositeComponentMixin._renderValidatedComponent (http://localhost:8081/index.android.bundle?platform=android&dev=true:13089:6)
    at wrapper [as _renderValidatedComponent] (http://localhost:8081/index.android.bundle?platform=android&dev=true:3560:13)
    at ReactCompositeComponentMixin._updateRenderedComponent (http://localhost:8081/index.android.bundle?platform=android&dev=true:13025:30)
    at ReactCompositeComponentMixin._performComponentUpdate (http://localhost:8081/index.android.bundle?platform=android&dev=true:13006:6)
    at ReactCompositeComponentMixin.updateComponent (http://localhost:8081/index.android.bundle?platform=android&dev=true:12916:6)
    at wrapper [as updateComponent] (http://localhost:8081/index.android.bundle?platform=android&dev=true:3560:13)
    at ReactCompositeComponentMixin.performUpdateIfNecessary (http://localhost:8081/index.android.bundle?platform=android&dev=true:12842:6)

Any help would be appreciated.
Thanks.

1 thought on “Android Issue

Comments are closed.