
react-native-runtimes
margelo
Run heavy React Native components and business logic in isolated Hermes runtimes (without freezing your main JS thread)
AI 简介
react-native-runtimes 是一个用于在隔离的 Hermes 运行时中执行繁重的 React Native 组件和业务逻辑的库,从而避免阻塞主线程。其核心功能包括将选定的 React 组件挂载到命名的次级 Hermes 运行时、运行整个屏幕或无头任务、通过原生 C++ 单例跨隔离 JS 堆共享状态以及预热运行时以提高用户体验。该库支持 React Native 新架构,并且与 Android 和 iOS 平台兼容,同时提供 Expo 配置插件简化集成过程。适用于需要优化性能、保持界面流畅度的应用场景,特别是在处理复杂 UI 渲染或后台计算任务时。
TypeScript
433
Stars
9
Forks
4
Watchers
4
Issues
Star 增长
今日+31
近 7 天+102
近 30 天+379
综合评分90
默认分支main