Closed English3000 closed 6 years ago
As implemented, Text wrapped by a TouchableOpacity.
Text
TouchableOpacity
Easy to add a style prop that is passed to Text (especially as that's the more flexible option with React Native).
style
How my current code looks:
<View style={{width: "20%"}}> <Button title="Create Link" onPress={this.createLink}/> </View>
Button is React Native cannot be styled. The RN docs mention:
Button
If this button doesn't look right for your app, you can build your own button using TouchableOpacity or TouchableNativeFeedback.
As implemented,
Text
wrapped by aTouchableOpacity
.Easy to add a
style
prop that is passed toText
(especially as that's the more flexible option with React Native).How my current code looks: