React Native FlatList separator between columns

前端 未结 6 1560
不思量自难忘°
不思量自难忘° 2021-02-18 20:57

I have a FlatList with multiple columns:

             


        
6条回答
  •  鱼传尺愫
    2021-02-18 21:32

    You can add a View wrapper around your Text component and apply borderRight style to the View component, see example here: https://snack.expo.io/HJx68bKvb, try run in the Android emulator on Expo, the Expo's iOS emulator for some reason is not showing the border correctly, but is working on my local emulator.

    You can play around with padding on View component and Text component to get the desired border position.

提交回复
热议问题