While incorporating an overlay
in my application, how can I integrate a ScrollView
specifically for smaller devices?
Initially, I am checking the width:
const windowWidth = Dimensions.get("window").width;
Subsequently, I am attempting to display the ScrollView:
{!loading && (
// Insert starting tag
{ windowWidth === 320 && <ScrollView> }
<Text
...
>
{modalBody}
</Text>
// Insert ending tag
{ windowWidth === 320 && </ScrollView> }
)}
Any suggestions or insights?