-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Labels
Description
Current Behavior
Hello everyone, I have been having this problem on every new problem i created using react-navigation-stack, when the stack initialized there is a Padding Top that is added then removed,so far i have created 3 projects and am having the some problem even after i build, can someone please help me?
here is my code
`//root navigator
import React from "react";
import { View } from "react-native";
import { createAppContainer } from "react-navigation";
import { createStackNavigator } from "react-navigation-stack";
import { DetailBilan, ListBilan } from "../screens";
import { SearchStack } from "./reservationNavigation";
//contains all Bilan stack
const BilanStackTab = createStackNavigator(
{
ListBilanScreen: {
screen: ListBilan
},
DetailBilanScreen: {
screen: DetailBilan
}
},
{
initialRouteName: "ListBilanScreen"
}
);
//route container
const AppContainer = createAppContainer(BilanStackTab);
export default AppContainer;
`
Expected Behavior
- What do you expect should be happening?
- Include a screenshot or video if it makes sense.
How to reproduce
- start a new react-native project
Your Environment
| software | version |
|---|---|
| iOS or Android | 8.1 |
| react-navigation | 4.1.0 |
| react-navigation-stack | 2.1.0 |
| react-native-gesture-handler | 1.5.6 |
| react-native-safe-area-context | 0.6.4 |
| react-native-screens | 2.0.0-alpha.34 |
| react-native | 61.5 |
| node | 10.7 |
| npm or yarn | 17.3 |
draperunner, carlaares, raajnadar, gluons, DenisDov and 1 more
