Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property style of undefined #846

Closed
jasonnathan opened this issue May 23, 2017 · 10 comments
Closed

Cannot read property style of undefined #846

jasonnathan opened this issue May 23, 2017 · 10 comments

Comments

@jasonnathan
Copy link

jasonnathan commented May 23, 2017

Hi there, I have recently encountered a new error after upgrading to 2.1.4 (downgrading doesn't resolve the issue). This happens when importing any NativeBase component.

[10:35]

handleException    @    ExceptionsManager.js:63
handleError    @    InitializeCore.js:125
reportFatalError    @    error-guard.js:44
guardedLoadModule    @    require.js:120
_require    @    require.js:109
(anonymous)    @    index.android.bundle?platform=android&dev=true&hot=false&minify=false:140809
executeApplicationScript    @    debuggerWorker.js:40
(anonymous)    @    debuggerWorker.js:65

followed by

handleException    @    ExceptionsManager.js:63
handleError    @    InitializeCore.js:125
reportFatalError    @    error-guard.js:44
guard    @    MessageQueue.js:48
callFunctionReturnFlushedQueue    @    MessageQueue.js:107
(anonymous)    @    debuggerWorker.js:71

This seems to be similar to the issue listed here ptomasroos/react-native-scrollable-tab-view#634. When I greped for ViewPropStyles.style, all results returned were located in node_modules//native-base/src/basic/Tabs/*

I'm using react-native@0.43.2 & react@16.0.0-alpha.6

Installing directly from github does not resolve the issue either

@AustinHunt
Copy link

Same issue. This happened when I upgraded. I use an older version of react@^15 and react-native@0.42, but tried upgrading to the latest react and react-native and it stilled worked.

@jennykortina
Copy link

Same issue

@SupriyaKalghatgi
Copy link
Contributor

@jasonnathan Please check the Release Notes for 2.1.4

It says Supports React Native >= 0.44.0

@jasonnathan
Copy link
Author

jasonnathan commented May 24, 2017 via email

@SupriyaKalghatgi
Copy link
Contributor

@jasonnathan

"native-base": "2.1.4",
"react": "16.0.0-alpha.6",
"react-native": "0.44.0"

This should work

@sungjk
Copy link

sungjk commented May 24, 2017

+1

@jasonnathan
Copy link
Author

jasonnathan commented May 24, 2017 via email

@SupriyaKalghatgi
Copy link
Contributor

The version dependency in Release Notes of 2.1.4 says React Native >= 0.44.0
Please follow accordingly

@jennykortina
Copy link

@SupriyaKalghatgi solution worked for me. Thank you!

@jasonnathan
Copy link
Author

jasonnathan commented May 25, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants