react-nativereactjsjsx

ReactNative/Flex: how to arrange two components horizontal?


How to arrange 2 Image-Components next to another in the same row with flex?

Like this:

|| (image 1) || (image 2) ||


Solution

  • flexDirection: 'row' is your friend