Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
nopmengkoung opened this issue Aug 29, 2023 · 2 comments
Open
1 task done

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

nopmengkoung opened this issue Aug 29, 2023 · 2 comments

Comments

@nopmengkoung
Copy link

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?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

  • Install latest RN 0.72.4
  • Install RNN 7.37
  • Pod install with new arch
  • Setup the basic navigation
  • Running on Xcode 14.3.1

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
Copy link
Author

Here is my screenshot

Screenshot 2023-08-29 at 12 47 55 PM

@Spxc
Copy link

Spxc commented Sep 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants