Last active
March 17, 2016 08:12
-
-
Save kenwheeler/a889c7ba3042f8c70e95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react-native"; | |
const { | |
View, | |
Text | |
} = React; | |
class OurComponent extends React.Component { | |
render() { | |
<View> | |
{this.props.items.map((item) => ( | |
<View> | |
<Text>{item.name}</Text> | |
</View> | |
)} | |
</View> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to export this or else the test can't require it.