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

react native cannot read property 'alignItems' of undefined #18274

Closed
planetwebsolution opened this issue Mar 8, 2018 · 2 comments
Closed

react native cannot read property 'alignItems' of undefined #18274

planetwebsolution opened this issue Mar 8, 2018 · 2 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@planetwebsolution
Copy link

planetwebsolution commented Mar 8, 2018

unadjustednonraw_thumb_1cee
This strange error is coming only while I run app in IOS. My configuration is as below:

"dependencies": {
"axios": "^0.17.1",
"lodash": "^4.17.4",
"moment-timezone": "^0.5.14",
"name-initials": "^0.1.3",
"prop-types": "^15.6.0",
"react": "16.2.0",
"react-addons-update": "^15.6.2",
"react-native": "0.49.0",
"react-native-actionsheet": "^2.3.0",
"react-native-collapsible": "^0.10.0",
"react-native-drawer": "^2.5.0",
"react-native-drawer-menu": "^0.2.4",
"react-native-elements": "^0.18.2",
"react-native-fcm": "^14.1.0",
"react-native-hr": "^1.1.3",
"react-native-icon-button": "^1.0.0",
"react-native-infinite-scroll": "^1.0.6",
"react-native-infinite-scroll-view": "^0.4.3",
"react-native-keyboard-aware-scroll-view": "^0.4.1",
"react-native-keyboard-aware-scrollview": "^2.0.0",
"react-native-largelist": "0.0.6",
"react-native-loading-spinner-overlay": "^0.5.2",
"react-native-modal-picker": "0.0.16",
"react-native-nested-listview": "^0.3.0",
"react-native-orientation": "^3.1.3",
"react-native-paginated-listview": "^1.0.2",
"react-native-popup-menu": "^0.12.1",
"react-native-simple-modal": "^7.0.0",
"react-native-vector-icons": "^4.5.0",
"react-navigation": "^1.0.0-beta.19",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.2.0"
}

Can anyone please help me ?

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like your issue may be incomplete. Are all the fields required by the Issue Template filled out?

You may safely ignore this if you believe your issue contains all the relevant information. Thank you for your contributions.

How to ContributeWhat to Expect from Maintainers

@react-native-bot react-native-bot added No Template Ran Commands One of our bots successfully processed a command. labels Mar 8, 2018
@planetwebsolution
Copy link
Author

I found the root cause for this issue. This is not related with this repo but actually it is related with React-navigation. Mistakenly I configured StackNavigator wrong. I had to put valid navigationOptions. Here below is the code for the reference which may help some one:

const LoginStack = StackNavigator({
    ...
}, {
  navigationOptions: ({navigation}) => ({
      drawerLabel: 'XXXX',
      headerStyle: null, //It was the error and it should be either removed or replaced by valid object 
      headerLeft:<DrawerButton navigation={navigation} />,
    }),
    initialRouteName : "ccc"
})

After removing headerStyle(because in my case it is null) it worked.

@facebook facebook locked as resolved and limited conversation to collaborators Mar 9, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants