註冊並分享邀請連結,可獲得影片播放與邀請獎勵。

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:
顯示更多