React Native 0.70.x broken backward compatibility "Invalid Podfile"
retyui opened this issue Β· comments
Davyd NRB commented
@vonovak/react-native-theme-control@4.1.2
react-native@0.70.x
RCT_NEW_ARCH_ENABLED=1 npx pod-install
[!] Invalid `Podfile` file:
[!] Invalid `react-native-theme-control.podspec` file: undefined method `install_modules_dependencies' for Pod:Module.
# from /Users/i/tmp/Rn70New/node_modules/@vonovak/react-native-theme-control/react-native-theme-control.podspec:18
# -------------------------------------------
#
> install_modules_dependencies(s)
# end
# -------------------------------------------
Davyd NRB commented
create-react-native-library
the template with backward compatibility
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
s.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
}
s.dependency "React-Codegen"
s.dependency "RCT-Folly"
s.dependency "RCTRequired"
s.dependency "RCTTypeSafety"
s.dependency "ReactCommon/turbomodule/core"
end
end
Vojtech Novak commented
hi! Sorry but the library has been moving fast and the newest lib version supports only RN 72 or expo 49
Here's the list of what library version supports what RN version https://github.com/vonovak/react-native-theme-control/blob/main/docs/install.md
thank you! π
github-actions commented
π This issue has been resolved in version 4.1.3 π
The release is available on:
Your semantic-release bot π¦π