Skip to content

Instantly share code, notes, and snippets.

@axemclion
Created September 5, 2019 06:03
Show Gist options
  • Save axemclion/b78d00c7092a2ee78d242192a847ff73 to your computer and use it in GitHub Desktop.
Save axemclion/b78d00c7092a2ee78d242192a847ff73 to your computer and use it in GitHub Desktop.
Fix Yoga conflict when using Flipper with React Native (for rn <0.62)
sed -i '.bak' s/\'yoga\'/\'Yoga\'/ node_modules/react-native/ReactCommon/yoga/yoga.podspec
sed -i '.bak' s/\#\{version\}\.React/1\.14\.3/ node_modules/react-native/ReactCommon/yoga/yoga.podspec
sed -i '.bak' s/\#.Pinning/spec.pod_target_xcconfig=\{\'DEFINES_MODULE\'=\>\'YES\'\\}\#/ node_modules/react-native/ReactCommon/yoga/yoga.podspec
sed -i '.bak' s/\"yoga\",.\"\#\{version\}\.React\"/\"Yoga\"/ node_modules/react-native/React/React-Core.podspec
sed -i '.bak' s/\'yoga\'/\'Yoga\'/ ios/Podfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment