• คอมโพเนนต์ <Text />, <View /> ของ RN ต่างก็เป็น JS wrapper ที่ครอบ <TextNativeComponent /> และ <ViewNativeComponent /> ของตัวเองอยู่

  • สิ่งนี้มีไว้เพื่อจัดการ edge case เช่น view ภายในข้อความ หรือข้อความที่กดได้

  • react-native-boost เป็นปลั๊กอิน Babel ที่ค้นหาสถานการณ์ซึ่งไม่จำเป็นต้องจัดการ edge case เหล่านี้ แล้วแทนที่ด้วย native component
    https://react-native-boost.oss.kuatsu.de/docs/introduction/…

  • ในเบนช์มาร์กที่มี text component 1,000 ตัว พบว่าประสิทธิภาพดีขึ้นราว 50% บน iOS
    https://react-native-boost.oss.kuatsu.de/docs/introduction/benchmarks

ยังไม่มีความคิดเห็น

ยังไม่มีความคิดเห็น