====== Button / TouchableOpacity====== Buttonはほとんど何もカスタマイズできない。 スタイルを設定したければTouchableOpacityを使う必要がある。 'react-native'のButtonにはstyleプロパティがないので注意。 [[https://stackoverflow.com/questions/43585297/react-native-button-style-not-work|React-Native Button style not work ]] Viewを使ってカスタマイズしているサンプル [[https://www.skptricks.com/2018/07/how-customize-button-in-react-native.html|How To Customize Button In React Native]] import { StyleSheet, View , TouchableOpacity ,Button} from 'react-native'; ・・・ render() { return ( // TouchableOpacity TouchableOpacity // Button ); } ・・・ const styles = StyleSheet.create({ button: { width: 200, height: 40, margin: 50 , backgroundColor: 'lightblue', justifyContent: 'center', alignItems: 'center', }, } 同じスタイルを適用しても以下の差がでる {{:reactnative:pasted:20190130-010104.png}}