首页 > 解决方案 > 使用第三方模块时 Expo 的严重性能问题

问题描述

我正在尝试将此第三方模块与我的 Expo 应用程序一起使用,但如下所示,我遇到了一些严重的性能问题,控制台中记录了以下错误

Warning: This synthetic event is reused for performance reasons. If you're seeing this, you're accessing the property `type` on a released/nullified synthetic event. This is set to null. If you must keep the original synthetic event around, use event.persist(). See https://reactjs.org/docs/legacy-event-pooling.html for more information.

我使用的代码与示例中使用的代码完全相同,只是删除了图像和一些文本,以及使用底部选项卡设置了反应导航。

如果我尝试在移动设备上的 Expo Go 应用程序上运行该应用程序,问题也是一样的。

3

标签: react-nativeexporeact-native-android

解决方案


推荐阅读