necolas / react-native-web

Cross-platform React UI packages
https://necolas.github.io/react-native-web
MIT License
21.6k stars 1.79k forks source link

SUGGESTION: make Button component stylable #921

Closed English3000 closed 6 years ago

English3000 commented 6 years ago

As implemented, Text wrapped by a TouchableOpacity.

Easy to add a style prop that is passed to Text (especially as that's the more flexible option with React Native).

How my current code looks:

<View style={{width: "20%"}}>
  <Button title="Create Link" onPress={this.createLink}/>
</View>
necolas commented 6 years ago

Button is React Native cannot be styled. The RN docs mention:

If this button doesn't look right for your app, you can build your own button using TouchableOpacity or TouchableNativeFeedback.