react-pdf
react-pdf copied to clipboard
minPresenceAhead with Row and Column Layout - Children break
Describe the bug
I am creating a Row and 2 Column layout to show the list of items, As you see, name and id break.
<View class={style.row} minPresenceAhead={40}>
<View class={style.column} >
<Text style={styles.name}>{item.name}</Text>
<Text style={styles.id}>ID: {item.id}</Text>
</View>
<View class={style.column} >
<Text style={styles.name}>{item.name}</Text>
<Text style={styles.id}>ID: {item.id}</Text>
</View>
</View>
Link to react-pdf REPL
Expected behavior
If the space not enough, entire ROW should be move to next. In this Senario Both Grapes and Mango should be in next page.
Screenshots
Desktop (please complete the following information):
- OS: MacOS
- Browser chrome
- React-pdf version : 3.3.5 (repl), 3.0.1 (locally)