const styles = StyleSheet.create({container: {flex: 1,backgroundColor: '#fff',},content: {padding: 30,backgroundColor: 'green',},list: {backgroundColor: 'white',marginTop: 30,}});

About the content area

content: {padding: 30,backgroundColor: 'green',flex: 1},
Before adding flex equal to 1
After adding flex equal to 1

About the list area

list: {backgroundColor: 'white',marginTop: 30,flex: 1}

Teaching JavasScript, React, React Native, MongoDB and NodeJS https://linktr.ee/ckmobile

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store