iyegoroff / react-native-text-gradient

Text gradient for React-Native (ON HIATUS)
MIT License
97 stars 32 forks source link

App got crashed after creating offline bundle in both IOS and Android, showing error "text strings must be rendered within a <Text> component". #20

Closed saikiranoptisol closed 6 years ago

saikiranoptisol commented 6 years ago

during development if i run the code the gradient for text is working fine. But if i create any offline bundle ie: .ipa or .apk file and install it in corresponding devices the app got crashed and cant able to solve issue from few days. without react-native-text-gradient everything works fine.

iyegoroff commented 6 years ago

If your app crashed due to react-native-text-gradient, please attach a crash log.

saikiranoptisol commented 6 years ago

If your app crashed due to react-native-text-gradient, please attach a crash log.

how to get that crash log? i'm new to reactnative and i dont know how to do it

saikiranoptisol commented 6 years ago

hi, it is showing the Text strings must be rendered with in a component, for this in previous issues it is shown to use node node_modules/react-native-text-gradient/patch-rn.js. if i was in development mode i can use terminal and follow that but once i created a .apk file and .ipa file how i can get rid of this issue.

saikiranoptisol commented 6 years ago

@iyegoroff Can you respond on this please it will be a great help

iyegoroff commented 6 years ago

I'm closing this issue because can't do anything here without a crash log. Feel free to reopen it again when you have a crash log.

saikiranoptisol commented 6 years ago

how you can close this issue even though there is no crashlog for my project, in ios its directly crashing without showing any error, but in android it is Showing text strings must be rendered within a component. for this there is a patch that need to done in terminal. But after creating offline bundle and .apk and .ipa files how can i use terminal. kindly understand the issue and reopen it.

Steps to reproduce: 1.create sample project with react-native-text-gradient

  1. while running in xcode or android emulator you will get issue text strings must be rendered within a component. to avodi this add $ node node_modules/react-native-text-gradient/patch-rn.js in terminal.
  2. now create .apk file for android and .ipa file in IOS. install it in corresponding devices. 4.IOS App crashes, Android app crashes and shows text strings must be rendered within a component.

how to get rid of this issue? Reopen the issue again

yungobiwan commented 6 years ago

I get the same error in iOS as well.

saikiranoptisol commented 6 years ago

@iyegoroff Kindly Reopen the issue and provide solution for this

saikiranoptisol commented 5 years ago

Anyway I have done may searches why its happening for me. I cant find any issues previously like that. So after many searches now I'm finally react-native-svg which is working fine for me....

yasirdev commented 5 years ago

I get the same error in iOS as well.