Skip to content

React Native only supports JSX #144

Closed
@ColinEberhardt

Description

@ColinEberhardt

Unless I am mistake, I should be able to substitute this:

return <Text style={styles.text}>Hello World!</Text>;

With this:

return React.createElement('Text', { style: styles.text }, 'Hello World!');

However, the above causes the application to fail as follows:

[native code]
global code
 URL: http://localhost:8081/Examples/PropertyFinder/PropertyFinderApp.includeRequire.runModule.bundle
 line: 5745
 message: null is not a function (evaluating 'autoGenerateWrapperClass(tag)')"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions