Skip to content

Commit ea2bdaf

Browse files
authored
fix(🤖): add React Native 0.81 CMake compatibility (#3298)
1 parent 30b39d9 commit ea2bdaf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎packages/skia/android/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ message("-- TURBO : " ${TURBOMODULES_LIB})
300300

301301
add_definitions(-DREACT_NATIVE_VERSION=${REACT_NATIVE_VERSION})
302302

303+
# Set RN_SERIALIZABLE_STATE and C++ flags for React Native 0.81+
304+
if(${REACT_NATIVE_VERSION} GREATER_EQUAL 81)
305+
target_compile_reactnative_options(${PACKAGE_NAME} PRIVATE)
306+
endif()
307+
303308
# Link
304309
if(${REACT_NATIVE_VERSION} GREATER_EQUAL 76)
305310
set(COMMON_LIBS

0 commit comments

Comments
 (0)