注册并分享邀请链接,可获得视频播放与邀请奖励。

James Ide
@JI
Co-founder @Expo
加入 July 2010
102 正在关注    6.3K 粉丝
1. Write plain old Swift 2. Use two new attributes: ExpoModule on the class, JS on its functions and accessors Swift async functions : JS async functions (2.2x faster calls) Swift sync functions : JS sync functions (14.5x faster calls) Android and Kotlin speedups coming next.
显示更多
A native module is now one Swift class with @𝙹𝚂 on the parts JavaScript should see 🎉 Expo Modules 2.0 → 𝙵𝚞𝚗𝚌𝚝𝚒𝚘𝚗 and 𝙰𝚜𝚢𝚗𝚌𝙵𝚞𝚗𝚌𝚝𝚒𝚘𝚗 collapse into one @𝙹𝚂 method → 100,000 adds: 97 ms → 19 ms on the same SDK → iOS in SDK 57 today Benchmarks and code from @tsapeta:
显示更多