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
class App extends React.Component { | |
render() { | |
return ( | |
<View> | |
<View> | |
<Text>Header</Text> | |
</View> | |
<ScrollView> | |
<Button title="Awesome Button" /> | |
</ScrollView> |
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
const styles = StyleSheet.create({ | |
container: { | |
backgroundColor: "#fff" | |
}, | |
header: { | |
backgroundColor: "#c0392b", | |
height: 56, | |
paddingTop: 10 | |
}, | |
headerText: { |
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 Icon from "react-native-vector-icons/Ionicons"; | |
function ExampleView(props) { | |
return <Icon name="ios-person" />; | |
} |
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
Svg height="100" width="100"> | |
<Circle | |
cx="50" | |
cy="50" | |
r="45" | |
stroke="blue" | |
strokeWidth="2.5" | |
fill="green" | |
/> | |
<Rect |
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, { Component } from 'react'; | |
import { Container, Header, Title, Button, Left, Right, Body, Icon } from 'native-base'; | |
export default class HeaderExample extends Component { | |
render() { | |
return ( | |
<Container> | |
<Header> | |
<Left> | |
<Button transparent> | |
<Icon name='menu' /> |
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
container: { | |
backgroundColor: "#fff", | |
flex: 1 | |
} |
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, { Component } from 'react'; | |
import { AppRegistry, StyleSheet, Text, View } from 'react-native'; | |
export default class LotsOfStyles extends Component { | |
render() { | |
return ( | |
<View style={styles.greybox}> | |
<Text>Lorem Ipsum</Text> | |
</View> | |
); |
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
body: new Container( | |
decoration: new BoxDecoraction( | |
image: backgroundImage, | |
), | |
) |
OlderNewer