Home > database >  No safe area insets value available. Make sure you are rendering `<SafeAreaProvider>` at the t
No safe area insets value available. Make sure you are rendering `<SafeAreaProvider>` at the t

Time:07-04

                                        Codes

export default class CalorieScreen extends Component {
  constructor(){
    super();
    this.state={text:''}
  }
  render() {
    const { calories } = this.state;
    return (
       <View style={styles.container}>
        <Header
          backgroundColor={'#9c8210'}
          centerComponent={{
            text: 'Monkey Chunky',
            style: { padding:100, color: '#fff', fontSize: 20 },
          }}
        />


            </View>

    );
  }
}

I created a login screen that goes into my calorie screen when i click the buttun it takes me to the screen but this error appears

CodePudding user response:

As you are using react-native-elements make sure you install version 2.2.1

CodePudding user response:

just use it :D

wrap all the app in it
  • Related