I want to use different styles for ios and android, how can I do it? And maybe somebody know how to stylizing TextInput, I need only bottom border, but borderBottomWidth doesnt work.
There are many ways to achieve this. The simplest one in your case would be to use Platform.OS:
var {Platform} = React;
var styles = StyleSheet.create({
height: (Platform.OS === 'ios') ? 200 : 100
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With