We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 -v
react-native-cli: 0.2.0 react-native: 0.26.1
Build the code below of index.ios.js in xcode
'use strict'; var React = require('react-native'); var styles = React.StyleSheet.create({ text: { color: 'black', backgroundColor: 'white', fontSize: 30, margin: 80 } }); class PropertyFinderApp extends React.Component { render() { return React.createElement(React.Text, {style: styles.text}, "Hello World!"); } } React.AppRegistry.registerComponent('PropertyFinder', function() { return PropertyFinderApp });
Hello World!
Error : Super expression must either be null or a function, not null
The text was updated successfully, but these errors were encountered:
This part is the problem: var React = require('react-native');. Instead write:
var React = require('react-native');
var React = require('react'); var ReactNative = require('react-native');
Sorry, something went wrong.
No branches or pull requests
Version
$ react-native -v
react-native-cli: 0.2.0
react-native: 0.26.1
Steps to reproduce
Build the code below of index.ios.js in xcode
'use strict';
var React = require('react-native');
var styles = React.StyleSheet.create({
text: {
color: 'black',
backgroundColor: 'white',
fontSize: 30,
margin: 80
}
});
class PropertyFinderApp extends React.Component {
render() {
return React.createElement(React.Text, {style: styles.text}, "Hello World!");
}
}
React.AppRegistry.registerComponent('PropertyFinder', function() { return PropertyFinderApp });
Expected Behavior
Hello World!
Actual Behavior
Error : Super expression must either be null or a function, not null
The text was updated successfully, but these errors were encountered: