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

Super expression must either be null or a function, not null #7711

Closed
binoyskumar opened this issue May 24, 2016 · 1 comment
Closed

Super expression must either be null or a function, not null #7711

binoyskumar opened this issue May 24, 2016 · 1 comment
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@binoyskumar
Copy link

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

screen shot 2016-05-23 at 11 49 04 pm

@ide
Copy link
Contributor

ide commented May 24, 2016

This part is the problem: var React = require('react-native');. Instead write:

var React = require('react');
var ReactNative = require('react-native');

@ide ide closed this as completed May 24, 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 19, 2018
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

3 participants