There were also many times where the FlatList separator was just a View with a height or width, without a color.
Looks like it will be something like
type SeparatorProps = ViewProps & {
transparent?: true;
color?: ColorValue;
row?: true; // or vertical? +1 row as we use this keyword at other components
width?: number | string;
height?: number | string;
/** Same axis margin */
margin?: number | string;
/** Multiple of StyleSheet.hairlineWidth */
thickness?: number
}
<Separator transparent row margin={10} color='#0005' />
I prefer separator over divider as FlatList uses Divider. However, the UI Kits uses Divider, so maybe would be good to keep some consistency. But, ain't here to follow patterns ;)
I usually use them on Flatlists as separators.
Some examples I found now in my apps:
There were also many times where the FlatList separator was just a View with a height or width, without a color.
Looks like it will be something like
I prefer separator over divider as FlatList uses Divider. However, the UI Kits uses Divider, so maybe would be good to keep some consistency. But, ain't here to follow patterns ;)
UI Kits Refs: https://reactnativeelements.com/docs/components/divider https://callstack.github.io/react-native-paper/divider.html