mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 20:44:10 +00:00
Fix Linking Example
Summary: It seems like the examples weren't working since the merge of `IntentAndroid` and `LinkingIOS` since they were still using `TouchableNativeFeedback` only available on Android. The problem was also reported here : https://github.com/facebook/react-native/issues/7615 Closes https://github.com/facebook/react-native/pull/7655 Differential Revision: D3329233 fbshipit-source-id: 8c9cabaab0a616dab406c4e444c9fa6da5f54b6d
This commit is contained in:
parent
946ec48a07
commit
0525d4a128
@ -19,7 +19,7 @@ var {
|
|||||||
Linking,
|
Linking,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
Text,
|
Text,
|
||||||
TouchableNativeFeedback,
|
TouchableOpacity,
|
||||||
View,
|
View,
|
||||||
} = ReactNative;
|
} = ReactNative;
|
||||||
var UIExplorerBlock = require('./UIExplorerBlock');
|
var UIExplorerBlock = require('./UIExplorerBlock');
|
||||||
@ -42,12 +42,12 @@ var OpenURLButton = React.createClass({
|
|||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<TouchableNativeFeedback
|
<TouchableOpacity
|
||||||
onPress={this.handleClick}>
|
onPress={this.handleClick}>
|
||||||
<View style={styles.button}>
|
<View style={styles.button}>
|
||||||
<Text style={styles.text}>Open {this.props.url}</Text>
|
<Text style={styles.text}>Open {this.props.url}</Text>
|
||||||
</View>
|
</View>
|
||||||
</TouchableNativeFeedback>
|
</TouchableOpacity>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user