Created
April 3, 2016 06:43
-
-
Save janicduplessis/9f1d42c670aefd660afb4c96e8bb6a4f 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
'use strict'; | |
var React = require('react-native'); | |
var { | |
View, | |
TouchableNativeFeedback, | |
} = React; | |
var TouchableIssue = React.createClass({ | |
render() { | |
return ( | |
<TouchableNativeFeedback background={TouchableNativeFeedback.SelectableBackground()} delayPressIn={0}> | |
<View style={styles.root}> | |
<TouchableNativeFeedback background={TouchableNativeFeedback.SelectableBackgroundBorderless()} delayPressIn={0}> | |
<View style={styles.action} /> | |
</TouchableNativeFeedback> | |
<TouchableNativeFeedback background={TouchableNativeFeedback.SelectableBackgroundBorderless()} delayPressIn={0}> | |
<View style={styles.action} /> | |
</TouchableNativeFeedback> | |
<TouchableNativeFeedback background={TouchableNativeFeedback.SelectableBackgroundBorderless()} delayPressIn={0}> | |
<View style={styles.action} /> | |
</TouchableNativeFeedback> | |
</View> | |
</TouchableNativeFeedback> | |
); | |
}, | |
}); | |
var styles = React.StyleSheet.create({ | |
root: { | |
flexDirection: 'row', | |
height: 200, | |
margin: 16, | |
alignItems: 'center', | |
justifyContent: 'space-around', | |
backgroundColor: 'rgba(0, 0, 0, .1)', | |
}, | |
action: { | |
width: 48, | |
height: 48, | |
backgroundColor: 'rgba(255, 0, 0, .5)', | |
}, | |
}); | |
exports.framework = 'React'; | |
exports.title = '<TouchableIssue>'; | |
exports.examples = [ | |
{ | |
render: () => <TouchableIssue />, | |
}, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment