Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

React Native Overlay on a ScrollView

$
0
0

Here's my code atm.:

'''

return(< SafeAreaView style = {style.main}><ScrollView style= {{backgroundColor: ""}}><View style = {style.container}><Food style = {style.food} image = {require("../../assets/icon.png")} /><Food style = {style.food} image = {require("../../assets/icon.png")} /><Food style = {style.food} image = {require("../../assets/icon.png")} name = "Sajtos  Csiga" price = "5000 Ft"/><Food style = {style.food} image = {require("../../assets/icon.png")} /><Food style = {style.food} image = {require("../../assets/icon.png")} /><Food style = {style.food} image = {require("../../assets/icon.png")} /><Food style = {style.food} image = {require("../../assets/icon.png")} /><Food style = {style.food} image = {require("../../assets/icon.png")} /></View></ScrollView><Overlay style = {style.overlay}/></SafeAreaView >)'''

And the the thing what I'd like to achieve would look like this:

goal

Where the Overlay would be the "BUFEE".

Can you help me with the CSS (or more like the StyleSheet), please?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>