I have a screen in my app that has a "in between" content. This content is too long for the Iphone 5-8, but just one screen for the Iphone 8S-XS Max.
To fix it, I've put on a simple ScrollView
, which works for the content that is too long, but for the larger screen sizes, it leaves a gray background like shown in the screenshot below:
Here is the code:
<View style={{flex: 1, width: '100%',justifyContent: 'center', alignItems: 'center', height: 900,}}>
<ScrollView style={{width: '100%', flex: 1, height: 900}}>
<ImageBackground source={require('../../assets/images/background.png')} style={{width: '100%', flex: 1, justifyContent: 'flex-start', alignItems: 'center', backgroundColor: 'background-color: rgba(0, 0, 0, 0.5)',}}>
{/*...Unimportant view code...*/}
</ImageBackground>
</ScrollView>
</View>
As you can see, I've applied flex: 1
to all of the important containers, and I've tried putting a bounded height (e.g. height: 900
) on all of the above containers, to still no avail.
How can I make the content contained in the scrollview take up the whole screen height regardless of device?
I am working on an application that uses angular js UI grid. But as and when I keep using my application, it keeps adding up to the memory without releasing the dom objects. I have created a sample ...
I am working on an application that uses angular js UI grid. But as and when I keep using my application, it keeps adding up to the memory without releasing the dom objects. I have created a sample ...
I need to transfer state of a component to its parent component, but I don't need to transfer all fields. What I currently do: submitHandler = (e) => { e.preventDefault(); const ...
I need to transfer state of a component to its parent component, but I don't need to transfer all fields. What I currently do: submitHandler = (e) => { e.preventDefault(); const ...
I have an svg circle element with coordinate attribute as below: <circle id="c1" class="area" cx="440" cy="415" r="75"></circle> I would like to generate some random points within the ...
I have an svg circle element with coordinate attribute as below: <circle id="c1" class="area" cx="440" cy="415" r="75"></circle> I would like to generate some random points within the ...
Somewhere in the global scope: let App = Backbone.Marionette.Application.extend({}); window.Ext = new App(); Inside Module A: Ext.vent.trigger('Tracked:Email:send', { from_email: tracking_data....
Somewhere in the global scope: let App = Backbone.Marionette.Application.extend({}); window.Ext = new App(); Inside Module A: Ext.vent.trigger('Tracked:Email:send', { from_email: tracking_data....