kkemple / hwyd

How Was Your Day? Quickly track your ups and downs
37 stars 9 forks source link

Login.js <View> within <Text> not supported on Android #18

Closed rdela closed 6 years ago

rdela commented 6 years ago

omg y'all DLed Android Studio, made a kotlin proj. got the emulator up and workin w/ expo 😲

So while testing #17…

I came across this error in the Android emulator that may have to do with recent login additions?

If it is just a priority issue I can try to adjust while maintaining layout but wanted to post and see if anyone had thoughts first πŸ€”πŸ’­πŸŒπŸ§ 

Full error output, screenshot beneath!

Invariant Violation: Nesting of <View> within <Text> is not supported on Android.

This error is located at:
    in View (created by Styled(View))
    in Styled(View) (at Login.js:187)
    in RCTText (at Text.js:548)
    in Text (created by Styled(Text))
    in Styled(Text) (created by Styled(Styled(Text)))
    in Styled(Styled(Text)) (at Login.js:185)
    in RCTView (at View.js:71)
    in View (created by Styled(View))
    in Styled(View) (at Login.js:158)
    in Login (at App.js:134)
    in ThemeProvider (at App.js:133)
    in App (at registerRootComponent.js:35)
    in RootErrorBoundary (at registerRootComponent.js:34)
    in ExpoRootComponent (at renderApplication.js:35)
    in RCTView (at View.js:71)
    in View (at AppContainer.js:102)
    in RCTView (at View.js:71)
    in View (at AppContainer.js:122)
    in AppContainer (at renderApplication.js:34)
View_render
    View.js:64:6
finishClassComponent
    ReactNativeRenderer-dev.js:7866:21
updateClassComponent
    ReactNativeRenderer-dev.js:7834:6
beginWork
    ReactNativeRenderer-dev.js:8285:10
performUnitOfWork
    ReactNativeRenderer-dev.js:10513:25
workLoop
    ReactNativeRenderer-dev.js:10584:43
_invokeGuardedCallback
    ReactNativeRenderer-dev.js:134:15
invokeGuardedCallback
    ReactNativeRenderer-dev.js:67:32
renderRoot
    ReactNativeRenderer-dev.js:10677:30
performWorkOnRoot
    ReactNativeRenderer-dev.js:11449:34
performWork
    ReactNativeRenderer-dev.js:11364:8
requestWork
    ReactNativeRenderer-dev.js:11258:18
scheduleWorkImpl
    ReactNativeRenderer-dev.js:11099:22
scheduleWork
    ReactNativeRenderer-dev.js:11046:28
enqueueSetState
    ReactNativeRenderer-dev.js:5626:19
setState
    react.development.js:237:31
<unknown>
    App.js:100:22
<unknown>
    subscribe.js:59:21
<unknown>
    subscribe.js:167:17
tryCallOne
    core.js:37:14
<unknown>
    core.js:123:25
<unknown>
    JSTimers.js:301:23
_callTimer
    JSTimers.js:154:6
_callImmediatesPass
    JSTimers.js:202:17
callImmediates
    JSTimers.js:470:11
__callImmediates
    MessageQueue.js:329:4
<unknown>
    MessageQueue.js:147:6
__guardSafe
    MessageQueue.js:316:6
flushedQueue
    MessageQueue.js:146:17
invokeCallbackAndReturnFlushedQueue
    MessageQueue.js:142:11

screenshot android emulator nexus 5x api 27 intel x86

login-nest-error-1521769940

kkemple commented 6 years ago

this is another one of those annoying android issues, and yeah, we need to figure out how to not have View inside the Text

SaraVieira commented 6 years ago

Since this was probably on me on the login I shall fix the his today gentleman

On Fri, 23 Mar 2018, 12:49 Kurtis Kemple, notifications@github.com wrote:

this is another one of those annoying android issues, and yeah, we need to figure out how to not have View inside the Text

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kkemple/hwyd/issues/18#issuecomment-375654781, or mute the thread https://github.com/notifications/unsubscribe-auth/ABALdUB3cVKCf-RzFLerYYtPfyb0Kob9ks5thO9zgaJpZM4S4GI1 .

--

Thank you Sara Vieira