You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to render an empty page conditionally by pageNumber or totalPages. It means that I have to use the render method on the component with break prop:
<Viewrender={({ pageNumber })=>pageNumber%2!==0&&(<Viewbreak><Text>I'm only visible in even pages!</Text></View>)}/>;
but break does not work in the render method. Why? How can I do it?
It needs to double side printing document. I have an array of elements to print, but each element(can span more than one page) have to placed on new odd page.
Also I tried to use Page in condition rendering, but then the page numbering is broken. Like this:
I want to render an empty page conditionally by pageNumber or totalPages. It means that I have to use the render method on the component with
break
prop:but
break
does not work in the render method. Why? How can I do it?It needs to double side printing document. I have an array of elements to print, but each element(can span more than one page) have to placed on new odd page.
Also I tried to use
Page
in condition rendering, but then the page numbering is broken. Like this:Perhaps you have another solution for this?
React-PDF version: 4.0.0
The text was updated successfully, but these errors were encountered: