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
On Android, ScrollView children grow (as seen in Button in screenshot)
On Web, ScrollView children don't grow
This can be fixed by switching the style on the ScrollView div from block to flex. I don't see any immediate issues making this change - but posting here before raising a PR in case anyone has behaviour that relies on existing ScrollView behaviour.
importReact,{Component}from"react";importRX,{Button,View,Text,Styles,ScrollView}from"reactxp";constbuttonStyle=RX.Styles.createButtonStyle({borderRadius: 4,borderColor: 'grey',borderWidth: 1,padding: 4})interfaceProps{}interfaceState{}exportdefaultclassAppextendsComponent<Props,State>{render(){letitems: JSX.Element[]=[];for(leti=0;i<100;i++){items.push(<View><Text>{i}</Text></View>)}// Create a button that appears different on web vs Androidreturn(<ScrollView><View><Text>ThisisaTextinaView</Text></View><Buttonstyle={ buttonStyle }><Text>ThisisaButtoninaView</Text></Button>{ items }</ScrollView>);}}
On Android, ScrollView children grow (as seen in Button in screenshot)
On Web, ScrollView children don't grow
This can be fixed by switching the style on the ScrollView div from
blocktoflex. I don't see any immediate issues making this change - but posting here before raising a PR in case anyone has behaviour that relies on existing ScrollView behaviour.See the button below in the screenshot
