wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.02k stars 2.67k forks source link

View not rendered on iOS RN 0.72 and RNN 7.37 #7776

Open nopmengkoung opened 11 months ago

nopmengkoung commented 11 months ago

What happened?

After I managed to install and setup everything with RNN, I tried the basic navigation such register the screen and setRoot to display a component but I facing the issue that my View in never render or running. One more thing the TopBar is display and the title of the TopBar also display if I set it via the static options, even console.log also not running. It's seem like that my component is not registered.

import React from 'react';
import {View} from 'react-native';
import {NavigationFunctionComponent} from 'react-native-navigation';

import Text from '../../components/Text';
import createStyles from '../../theme/baseStyles';

const InitialView: NavigationFunctionComponent = () => {
  return (
    <View style={[styles.flex1, styles.contentCenter]}>
      <Text>Initial View</Text>
    </View>
  );
};

InitialView.options = {
  topBar: {
    title: {
      text: 'Initial View',
    },
  },
};

const styles = createStyles();

export default InitialView;

What was the expected behaviour?

No response

Was it tested on latest react-native-navigation?

Help us reproduce this issue!

In what environment did this happen?

React Native Navigation version: 7.37 React Native version: 0.72 Has Fabric (React Native's new rendering system) enabled: yes Node version: v16 Device model: Simulator iOS version: 16

nopmengkoung commented 11 months ago

Here is my screenshot

Screenshot 2023-08-29 at 12 47 55 PM
Spxc commented 11 months ago

I just ran a test on RN 0.72.4 and didnt have any issues. Did you install the pods and so on?