React.createClass({displayName: "Circle", render: function() { var radius = this.props.radius; var path = Path().moveTo(0, -radius) .arc(0, radius * 2, radius) .arc(0, radius * -2, radius) .close(); return <AnimatedShape {...this.props} d={path} />; } })
React.createClass({ render: function() { return ( <ScrollView style={styles.scroll}> <Text style={styles.text}>{this.props.forecastRaw.city.name}</Text> <ListView dataSource={this.props.forecastData} renderRow={ForecastRow} style={styles.listView}/> </ScrollView> ) } })
React.createClass({ render() { return ( <View style={styles.dayLabelsWrapper}> { WEEKDAYS.map((day, key) => { return <Text key={key} style={styles.dayLabels}>{day}</Text> }) } </View> ); } })
React.createClass({ propTypes: { title: React.PropTypes.string, description: React.PropTypes.string, }, getInitialState: function() { return {description: (null: ?string)
React.createClass({ render: function() { return ( <WebView url={this.props.link.url} /> ); }, })
React.createClass({ render: function() { return ( <Text style={{fontWeight: '500', color: '#527fe4'}}> {this.props.children} </Text> ); } })
React.createClass({ statics: { title: '<ListView> - Simple', description: 'Performant, scrollable list of data.' }, getInitialState: function() { var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); return { dataSource: ds.cloneWithRows(this._genRows({})), }; }, _pressData: ({}: {[key: number]: boolean})
React.createClass({ render: function() { return ( <View style={styles.ingredientItem}> <Text style={styles.ingredientItemName}> {this.props.ingredient.name} </Text> </View> ); }, })
React.createClass({ render: function() { return ( <NavigatorIOS style={styles.container} initialRoute={Routes.StartScreen()} /> ); } })
React.createClass({ render: function() { return ( <View style={styles.headingContainer}> <Text style={styles.heading}> {this.props.label} </Text> </View> ); } })
React.createClass({ render : function() { return ( <View> <Text>Hello</Text> </View> ); }, })
React.createClass({ render: function() { return ( <View style={styles.container}> <Text style={styles.text}> {this.props.title} </Text> </View> ); } })
React.createClass({ render: function() { return ( <NavigatorIOS style={styles.container} initialRoute={{ title: 'Charts', component: chartView , }}/> ); } })
React.createClass({ render: function() { return ( <View style={styles.container}> <Text style={styles.text}> {this.props.title} </Text> </View> ); } })
React.createClass({ render: function() { return ( <NavigatorIOS style={ styles.container} initialRoute={{ title: 'Github', component: Main }}/> ); } })