-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native 端开发体验问题汇总 #558
Comments
React Native 支持,需要加速了 |
请问React Native的版本大概什么时候出 |
React Native 不支持组合选择器,它样式都是在一个组件里,不太会遇到样式覆盖的问题, |
遇到的一些坑:
|
@js-newbee |
问题 3,4 已经反馈给组件开发的同学。
|
beta 版已经可以尝鲜了。 |
ReactNative 不支持嵌套点击,当你用了嵌套的
可以自行尝试 <ReactNativeView
onStartShouldSetResponder={() => true}
onStartShouldSetResponderCapture={() => true}
onResponderGrant={() => { console.log('grant outer') }}
onResponderRelease={() => { console.log('release outer') }}
>
<ReactNativeView
onStartShouldSetResponder={() => true}
onResponderGrant={() => { console.log('grant inner') }}
onResponderRelease={() => { console.log('release inner') }}
>
<Text>Click me</Text>
</ReactNativeView>
</ReactNativeView> 所以,应该由书写规范约束来实现你要的效果,图片点击为图片点击,图片之外的区域为外部的点击。 |
rn的编译能不能不依赖EXPO运行时,因为EXPO不能自定义添加原生组件的代码,或是你们有没好的方案,可以在EXPO的基础上使用自定义的原生组件 |
确实,不能自定义添加原生组件的代码是 expo 最大的弊端。不过 expo 的好处也是显而易见的,如:开发门槛低,不需要配置环境等,屏蔽原生代码等。 |
本来考虑的是样式全部通过CS所说的包来转换,还是太年轻,它能做的事有限,并不能把样式转成属性赋给组件,ReactNative 有 还有其他开发者有需求而且必要的属性,会加进去,但是——如果全属性支持,就跟用 ReactNative 本身来开发无异了。所以框架会越来越完善,让开发者少写这些特定环境才需要的代码。 |
是这原因没错,但目前有不一致的地方: |
这么坑。。那我来兼容一下路由的写法吧。 @js-newbee |
@Pines-Cheng 好的 等您发布我们去体验下 我们公司现在也有不少业务是rn开发的 需要这样的解决方案 能减少不少工作量 |
@js-newbee 路由问题已 fix ,今天应该会发一版。 |
@AibiTi 在Taro裡直接用View就可以了 |
ERROR STARTING PACKAGER Error: React native is not installed. Please run |
在 .rn_temp 目录下运行 |
上面那个错误是在编译完成后出现的 npm ERR! A complete log of this run can be found in: |
运行npm run dev:rn/taro build --type rn --watch时 找不到xdl依赖包下的Project.js文件 |
你这路径有问题啊。@kivenC |
多半是依赖安装的问题,在 .rn_temp 目录下删除 npm 依赖,然后运行 npm install重新安装即可。 如果还是有问题,可以提一个新的 issue ,附上详细信息和截图。@KimCongMax |
我把.rn_temp目录下的node_modules删除,重新运行npm install后出现一些警告,没有错误 |
在。rn_temp下expo build:android 打包成了apk,但是应用打不开,是app.json有什么需要注意的吗 |
@ztopia 建议单独提一个 issue ,然后完善描述和截图,方面复现和解答。 |
This comment has been minimized.
This comment has been minimized.
大家好: |
This comment has been minimized.
This comment has been minimized.
下一个版本发布,文档已更新。
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
运行react-native壳子程序,报错 |
@2359634711 看起来像是依赖安装的问题。 |
目前正在把一个项目移植到RN上,发现两个问题: |
运行react-native壳子程序,报错
|
@tourze 提一个单独的 issue? |
This comment has been minimized.
This comment has been minimized.
按照文档死活跑不起来rn的demo,壳子工程现在还有人维护吗 |
@qiaoyixuan 不至于吧。。 进 RN 群可以在任意的 Taro 群 @ 我,我来拉。 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
之后单独开 issue 提问吧。 |
tabBar 设置了底部栏,H5和微信小程序图片都能显示,RN显示不出图片 |
这个可以的 |
@Dyrixu 请教一下这样要怎么写代码呢? |
Taro 编译 React Native 端,凡是影响到开发体验到问题,无论是开发流程优化、文档补全,或是容易踩到的坑,都可以在此列出来,帮助我们快速高效迭代。🔥🔥🔥
PS: 进 Taro RN 开发群可以统一回复凹凸小助手:RN
The text was updated successfully, but these errors were encountered: