diff --git a/example/ios/Podfile b/example/ios/Podfile index 6c8c262..9d22f06 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -27,15 +27,15 @@ end target 'MiddlewareReactNativeExample' do config = use_native_modules! - + flags = get_default_flags() use_react_native!( :path => config[:reactNativePath], # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable the next line. - :hermes_enabled => false, - :fabric_enabled => false, + :hermes_enabled => flags[:hermes_enabled], + :fabric_enabled => flags[:fabric_enabled], :flipper_configuration => flipper_config, # An absolute path to your application root. :app_path => "#{Pod::Config.instance.installation_root}/.." diff --git a/example/react-native.config.js b/example/react-native.config.js index a516695..95dd3e1 100644 --- a/example/react-native.config.js +++ b/example/react-native.config.js @@ -3,6 +3,9 @@ const pak = require('../package.json'); module.exports = { dependencies: { + ...(process.env.NO_FLIPPER + ? { 'react-native-flipper': { platforms: { ios: null } } } + : {}), [pak.name]: { root: path.join(__dirname, '..'), },