How to divide screen to two parts in react-native?
问题 I'm new in react-native, and I'm trying to divide screen to tow part, the first part is the header or the navigation bar wish have a specific height about 40px the second part is the body or the content of the app wish his height must be the available height on the phone screen, I tried to use flex box method but it's not working! That's my code: <View style={styles.mainContainer}> <View style={styles.navBar}> </View> <View style={styles.body}> </View> </View> Style: mainContainer: { height: