I'm seeing an oddity when rendering something like this
const s = StyleSheet.create({
container: {
backgroundColor: 'aliceblue',
height: 300,
width: 200,
},
child: {
height: 100,
width: 100,
}
})
<View style={s.container}>
{["bisque", "cadetblue", "darkseagreen"].map((c, i) => (
<View style={{...s.child, backgroundColor: c}}>
<Text content={`Child ${i+1}`} />
</View>
))}
</View>
I'd expect to see this, more or less:

instead, it's positioning the parent <View/> after the children. Like this

You can also see similar drawing setting the container to something like, {position: 'absolute', left: 100, top: 100}

I think the issue is around here, https://github.com/raphamorim/react-ape/blob/master/packages/react-ape/renderer/elements/View.js#L52-L56
Also, it seems as though the views are rendered in order of child to parent. With that in mind, I'm not sure how you can render such a list without recomputing the child positions when you finally know the position of the parent. Although, I could be wrong. That happens often.
I'm seeing an oddity when rendering something like this
I'd expect to see this, more or less:
instead, it's positioning the parent
<View/>after the children. Like thisYou can also see similar drawing setting the container to something like,
{position: 'absolute', left: 100, top: 100}I think the issue is around here, https://github.com/raphamorim/react-ape/blob/master/packages/react-ape/renderer/elements/View.js#L52-L56
Also, it seems as though the views are rendered in order of child to parent. With that in mind, I'm not sure how you can render such a list without recomputing the child positions when you finally know the position of the parent. Although, I could be wrong. That happens often.