How to add a button in React Native?

后端 未结 9 693
暖寄归人
暖寄归人 2021-01-31 07:46

I´m confused with this whole \"no CSS\" thing, but I understand why it\'s beneficial. All I want to do is place a button in the middle of the screen but I don\'t understand how

9条回答
  •  旧巷少年郎
    2021-01-31 08:26

    Please check react-native doc's regarding the buttons

    You have more than one way to add button in your application and styling it

    You can use Button tag and it's have only one way styling by color attribute, it will appearing in IOS different than Android, or by putting button in view tag with style

提交回复
热议问题