
3 月 22 日,南京,聊聊生成式 AI 应用构建

React Native 0.78.1 现已发布。值得注意的是,该版本在使用resolver.unstable_enablePackageExports
和@react-native/metro-config
中的默认值时存在不兼容问题。它出现“interopRequireDefault is not a function”的红框错误。可通过设置resolver.unstable_conditionNames = ['react-native']
以缓解。该问题计划在 0.78.2 版本中修复。
v0.78.1 具体更新内容如下:
Fixed
- Deps:community-cli-plugin:通过对 cli 的对等依赖解析 cli-server-api(9ffbeadf8a)
- DevTools:修复网络压力过大时 DevTools 断开连接的问题(9e47ed9a20)
Android specific
- Image:修复 Android Image defaultSource 运行时错误(665212e22c)
- style:修复 elevation with border-radius set(#48982)(68dc582305)
iOS specific
- Initializatio:在新架构中调用
extraModulesForBridge
回调。( 97adbd897f) - Initializatio:在 bridge 模式下添加自定义加载 js 块(bdc83cb129)
- Interop Layer:正确地为可空参数传递
nil
,而不是为 legacy modules 传递NSNull
(619d5dfbb2) - TextInput:修复在 Apple Silicon Mac 上以 iOS 应用程序运行时输入任何文本时 TextInput 崩溃的问题(282cdc9fb4)
更新说明:https://github.com/facebook/react-native/releases/tag/v0.78.1
还没有评论,来说两句吧...