react-native-reanimated-carousel icon indicating copy to clipboard operation
react-native-reanimated-carousel copied to clipboard

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

Open iliamarkovski opened this issue 3 years ago • 3 comments

After installing the carousel and react-native-reanimated and react-native-gesture-handle I'm getting the error "Text strings must be rendered within a <Text> component."

Screenshot 2022-07-27 at 23 34 23

Versions :

  • react: v17.0.2
  • react-native: v0.68.2
  • react-native-reanimated: v~2.8.0
  • react-native-reanimated-carousel: v^3.0.3
  • react-native-gesture-handler: v~2.2.1

Smartphone (ios emulator)

  • Device: iPhone13 mini
  • OS: iOS15.5
  • Browser safari
  • Version

iliamarkovski avatar Jul 27 '22 20:07 iliamarkovski

@iliamarkovski if you, like me, copied the example, there is a trailing semicolon after the carousel

smndtrl avatar Jul 28 '22 11:07 smndtrl

@iliamarkovski if you, like me, copied the example, there is a trailing semicolon after the carousel

Thank you very much, lost almost 3 hours of debugging ...

iliamarkovski avatar Jul 28 '22 12:07 iliamarkovski

@dohooo it will be good, if remove the semicolon in the example

iliamarkovski avatar Jul 28 '22 12:07 iliamarkovski

Thanks for your tips, I update the examples.

dohooo avatar Aug 12 '22 04:08 dohooo