Skip to content

Instantly share code, notes, and snippets.

@janicduplessis
Created April 3, 2016 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janicduplessis/9f1d42c670aefd660afb4c96e8bb6a4f to your computer and use it in GitHub Desktop.
Save janicduplessis/9f1d42c670aefd660afb4c96e8bb6a4f to your computer and use it in GitHub Desktop.
'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