1

If you create a React Native <Button>, it renders as a UIButton in iOS and an android.widget.Button in android. This means that it looks different on different platforms.

Button and Pressable on android Button and Pressable on ios

What about Pressables? What is the simplest way to create an iOS button on iOS and an Android button on Android without resorting to a 3rd partly npm library?

Rap
  • 6,851
  • 3
  • 50
  • 88
  • 1
    Pressable is simply a wrapper component. You can put your `Button` inside of it to get the native styling (i.e. ` `) – nbokmans Jan 04 '21 at 14:44
  • https://medium.com/@mahyarmohammadi/react-native-pressable-vs-touchable-5fec6b332f15 - has more info, might help.. – Suresh Thayu Jan 04 '21 at 15:20
  • @nbokmans I confirmed that the ` – Rap Jan 04 '21 at 20:47

0 Answers0