Created
April 23, 2016 18:20
-
-
Save kyle-ssg/717c5b5202d8fc29d4479b63751f0490 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
<View style={{flex:1}}> | |
<View style={{flex:1}}> | |
<Button><Text>Hi</Text></Button> | |
<ListItem><Text>Hi</Text></ListItem> | |
<Switch onChange={this.toggleState("switchVal")} value={this.state.switchVal}/> | |
<Checkbox onChange={this.toggleState("checkboxVal")} value={this.state.checkboxVal}/> | |
<Radio onChange={this.toggleState("radioVal")} value={this.state.radioVal}/> | |
<Loader/> | |
<TextInput | |
onChange={(text)=>this.setState({text:text})} | |
minLines={2} | |
maxLines={2} | |
multiline={true}/> | |
<Text>{this.state.text}</Text> | |
<Select value={1}> | |
<Text text="Option 1" value={1} data={{name:'Kyle'}}>Option 1</Text> | |
<Text value={2} data={{name:'Bob'}}>Option 2</Text> | |
</Select> | |
</View> | |
<Swiper height={200}> | |
<View style={{flex:1, backgroundColor:'#333'}}/> | |
<View style={{flex:1, backgroundColor:'#444'}}/> | |
<View style={{flex:1, backgroundColor:'#555'}}/> | |
<View style={{flex:1, backgroundColor:'#666'}}/> | |
</Swiper> | |
<TabBar | |
onChange={(tab)=>this.setState({tab:tab})} | |
value={this.state.tab}> | |
<FooterTabItem value={1} text="Favourites" icon="ios-star-outline"/> | |
<FooterTabItem value={2} text="Twitter" icon="social-twitter-outline"/> | |
<FooterTabItem value={3} text="Facebook" icon="social-facebook-outline"/> | |
<FooterTabItem value={4} text="Search" icon="ios-search"/> | |
<Text value={5}>Custom Tab Item</Text> | |
</TabBar> | |
</View> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment