Skip to content

Text strings must be rendered within a <Text> component ( Android ) #93

@yelnyafacee

Description

@yelnyafacee

Current behaviour

<TabScreen /> label={"xxxx"} attribute causes ERROR/WARNING:
ERROR Warning: Text strings must be rendered within a <Text> component.

Tabs look ok with npm run start (Web ):
https://prnt.sc/T_y2XJwnNBGs

Tabs FAILED to work on android npx expo run:android
https://prnt.sc/80E5jyasbFuH

Expected behaviour

  • NO ERROR/WARNING thrown ERROR Warning: Text strings must be rendered within a <Text> component.
  • Tabscreen showing

How to reproduce?

<TabScreen label={"Filter"} icon="filter-outline" > .... </TabScreen>

Preview

screenshot1
screenshot2

What have you tried so far?

Tried, but cannot fix it

Your Environment

software version
ios x
android 11.0
react-native 0.79.5
react-native-paper ^5.14.5
node v21.6.0
npm 10.2.4
expo 53.0.22

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions