React Native error: Raw “ ” must be wrapped in an explicit <Text> Component

之所以 出现 这样错误 应为 React 把标签 与标签直接的空格 认为了是字符 让你 用Text


以下两种是正确的书写规范

RawText " " must be wrapped in an explicit <Text> component.
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:17438:14
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16635:49
mountChildren
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:19820:56
initializeChildren
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:19279:41
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:19339:28
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16635:49
performInitialMount
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20463:48
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20367:40
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16635:49
performInitialMount
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20463:48
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20367:40
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16635:49
mountChildren
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:19820:56
initializeChildren
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:19279:41
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:19339:28
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16635:49
performInitialMount
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20463:48
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20367:40
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16635:49
mountChildren
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:19820:56
initializeChildren
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:19279:41
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:19339:28
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16635:49
performInitialMount
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20463:48
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20367:40
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16635:49
performInitialMount
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20463:48
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20367:40
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16635:49
performInitialMount
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20463:48
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:20367:40
mountComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16635:49
mountComponentIntoNode
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:21606:46
perform
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16921:24
batchedMountComponentIntoNode
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:21613:22
perform
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16921:24
batchedUpdates
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16446:33
batchedUpdates
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:16515:41
renderComponent
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:21658:32
render
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:7486:42
renderApplication
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:46767:21
run
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:46555:33
runApplication
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:46595:26
__callFunction
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:5057:47
<unknown>
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:4928:29
guard
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:4892:7
callFunctionReturnFlushedQueue
    index.android.bundle?platform=android&dev=true&hot=false&minify=false:4927:12

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值