how to add button react native app.js
var tapSpeed = React.createClass({
render: function() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Tap me as fast as you can!
</Text>
<View style={styles.button}>
!
</View>
</View>
);
}
});
var styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#FFCCCC'
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10
},
button: {
textAlign: 'center',
color: '#ffffff',
marginBottom: 7,
border: 1px solid blue,
borderRadius: 2px
}
});
Also in JavaScript:
- how to convert array converted to string back to array javasccript
- fs create or edit file
- stream recording javascript
- js set cookie
- How to check if a member has a role discord.js
- lodash filter object keys
- javascript remove function from object
- javascript string replace
- reload a child component in angular
- insert into mongodb node js
- javascript auto scroll on bottom
- nested for loop javascript
- javascript show stack trace
- vue store access state in actions
- react native notifications error
- cypress fixture
- question mark and colon in javascript
- place white and black knights on 2x2 chessboard
- javascript get current url
- node path resolve
- How do you detect whether or not a word is a palindrome in javascript
- data type angular
- javascript localstorage
- node download s3 file