-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
We're relying on a dirty hack to detect the use of the use_framework directive in the consuming applications Podfile.
With React Native 0.71.0 a USE_FRAMEWORKS environment variable is set if the consuming app is configured to use frameworks. This is the commit bringing in the change: https://github.com/facebook/react-native/commit/f7b35c0d434a5e98228311722926819ffe80c4b6
We could either perform the same check (if we don't want to bump our minimum RN version to 0.71.0 - released Jan 12, 2023) or simply rely on the value of the USE_FRAMEWORKS environment variable.