akveo / akveo/react-native-ui-kitten

TopNavigation Disappearing

Ouverte
#1,613 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
10.7k
Forks
962
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

## 💬 Question
I have made a simple app (using expo) by following steps on the official docs.

The app has two screens and each screen has a TopNavigation and Divider, then the rest of the body.

Below is sample code for DetailsScreen;

```
import React from 'react'
import { SafeAreaView } from 'react-native';
import { Divider, Icon, Layout, Text, TopNavigation, TopNavigationAction } from '@ui-kitten/components';

const DetailsScreen = ({ navigation }) => {

const BackIcon = (props) => (

);

const navigateBack = () => {
navigation.goBack();
};

const BackAction = () => (

);

return (




DETAILS


)
}

export default DetailsScreen
```

Problem is the TopNavigation is disappearing/hiding at the top.

![screenshot](https://user-images.githubusercontent.com/3224157/163745434-9d05563b-1f5b-45d6-a880-44ddf4187d45.jpeg)

App.js

```
import * as eva from '@eva-design/eva'
import { ApplicationProvider, IconRegistry } from '@ui-kitten/components';
import { EvaIconsPack } from '@ui-kitten/eva-icons'
import { Provider } from 'react-redux';

import AppNavigator from './src/presentation/navigation/AppNavigator';

import { store } from './src/application/store'

export default function App() {
return (
<>







);
}
```

AppNavigator.js

```
import React from 'react'
import { NavigationContainer } from '@react-navigation/native'
import { createNativeStackNavigator } from '@react-navigation/native-stack'

import HomeScreen from '../screens/HomeScreen'
import DetailsScreen from '../screens/DetailsScreen'

const AppNavigator = () => {

const { Navigator, Screen } = createNativeStackNavigator()

return (






)
}

export default AppNavigator
```

The way it appears on the physical device is worse as UI is drawn over the notches.

What could I be doing wrong?

## UI Kitten and Eva version

| Package | Version |
| ----------- | ----------- |
| @eva-design/eva | ^2.1.1 |
| @ui-kitten/components | ^5.1.2 |

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.