react-native 报错Invariant Violation: Objects are not valid as a React child



  • 错误信息:Invariant Violation: Objects are not valid as a React child (found:object with keys {dispatchConfig,_targetInst,nativeEvent,type,target,currentTarget,eventPhase,bubbles,cancelable,timeStamp,defaultPrevented,isTrusted,isDefaultPrevented,isPropagationStopped,_dispatchListeners,_dispatchInstances,isPersistent}).
    This error is located at:
    in RCTText
    in R
    in Text
    in RCTView
    in RCTScrollView
    in T
    in RCTView
    in RCTView
    in RCTView
    in RCTModalHostView
    in n
    in n
    in RCTView
    in RCTView
    in u
    in RCTView
    in f
    in n
    in s
    in RCTView
    in RCTView
    in RCTView
    in u
    in s
    in n
    in E
    in RCTView
    in n
    in RCTView
    in H
    in L
    in RCTView
    in h
    in v
    in h
    in _
    in N
    in s
    in c
    in h
    in N
    in o
    in RCTView
    in RCTView
    in c

    请各路大神帮忙看一下原因



  • 贴代码,字数补丁


Log in to reply