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

Sometimes when <Feed /> or <Search /> is mounted, the app crashes because of a <Text> related error #12

Open
0xJoelero opened this issue Mar 9, 2023 · 3 comments

Comments

@0xJoelero
Copy link

Error: Text strings must be rendered within a <Text> component.

This error is located at:
    in RCTView (at View.js:32)
    in View (created by Publication)
    in RCTView (at View.js:32)
    in View (created by Publication)
    in RCTView (at View.js:32)
    in View (created by Publication)
    in Publication (created by CellRenderer)
    in RCTView (at View.js:32)
    ...

Screenshot 2023-03-09 at 00 10 23

My code:

const LensHome = () => {
  const navigation = useNavigation();
  return (
    <SafeAreaView style={styles.container}>
      <Search
        placeholder={i18next.t('search')}
        searchType={SearchType.publication}
        onProfileImagePress={profile => {
          navigation.navigate('LensProfile', { profile });
        }}
        onLikePress={() => {}}
        onCommentPress={publication => {
          const publicationId = publication?.mirrorOf
            ? publication?.mirrorOf?.id
            : publication?.id;
          navigation.push('LensComments', {
            publicationId,
          });
        }}
      />
    </SafeAreaView>
  );
};
export default LensHome;

The weird thing is this error is random, sometimes it happens, sometimes it doesn't, but when it always happens after the spinner (loading indicator) 'completes' the loading.

@dabit3
Copy link
Collaborator

dabit3 commented Aug 4, 2023

@0xJoelero is this happening on iOS or Android?

@shivam017arora
Copy link

Happening with me as well, on iOs.

1 similar comment
@Ewertonrcs
Copy link

Happening with me as well, on iOs.

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

No branches or pull requests

4 participants