First, I am not sure if it is correct to write as Bottom Bar.
Anyhow, I am going to place a button at the bottom and it's not working as expected because of the phone.
First one is iphone 11 and 2nd is iphone 8.
So as I wanted some gap from the bottom, the first image looks good. That's what I want but 2nd image is not. (NOTE: I am using SafeAreaView)
I've attached the code for the component. (the yellow button)
import React, {memo} from 'react';
import {TouchableOpacity, Image, StyleSheet} from 'react-native';
const NextButton = ({goNext, ...props}) => (
<TouchableOpacity onPress={goNext} style={[styles.container, props]}>
<Image style={styles.image} source={require('../assets/arrow_next.png')} />
</TouchableOpacity>
);
const styles = StyleSheet.create({
container: {
position: 'absolute',
bottom: 0,
right: 0,
},
image: {
width: 48,
height: 48,
backgroundColor: '#d0cf22',
borderRadius: 10,
},
});
export default memo(NextButton);

