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

undefined is not an object (evaluating 'h.propTypes.style') #5646

Closed
ghost opened this issue Jan 31, 2016 · 5 comments
Closed

undefined is not an object (evaluating 'h.propTypes.style') #5646

ghost opened this issue Jan 31, 2016 · 5 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@ghost
Copy link

ghost commented Jan 31, 2016

An application with a simple view->scrollview->image nesting, throws
undefined is not an object (evaluating 'h.propTypes.style')

Setup:
react-native-cli: 0.1.10
package.json:
{
"name": "hybrid",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start"
},
"dependencies": {
"react-native": "^0.19.0"
}
}
The index.android.js

`render:function() {
return (
< View style={styles.container}>

<Image style={{width:Dimensions.get('window').width}} source={require('./hybrid-v1@2x.png')} />


);
}
const styles = StyleSheet.create({
container: {
flex: 1,
width: Dimensions.get('window').width,

},
scrollView:{
flex:1,
width: Dimensions.get('window').width,
},

});`

01-31 17:01:01.367 3276 3292 E ReactNativeJS: undefined is not an object (evaluating 'h.propTypes.style')
01-31 17:01:01.372 3276 3293 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
01-31 17:01:01.372 3276 3293 E AndroidRuntime: Process: com.hybrid, PID: 3276
01-31 17:01:01.372 3276 3293 E AndroidRuntime: com.facebook.react.modules.core.JavascriptException:
01-31 17:01:01.372 3276 3293 E AndroidRuntime: index.android.bundle:15:8982
.
.
.
01-31 17:01:01.372 3276 3293 E AndroidRuntime: global code@index.android.bundle:17:26630

@facebook-github-bot
Copy link
Contributor

Hey jagan-veeraraghavan, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!

@Richard-Cao
Copy link

+1

1 similar comment
@jjshammas
Copy link

+1

@kristjanmik
Copy link

We have a good discussion going on in #5655

@ghost
Copy link
Author

ghost commented Feb 6, 2016

#5655 resolves this issue, so closing it.

@ghost ghost closed this as completed Feb 6, 2016
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 20, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants