Skip to content

Instantly share code, notes, and snippets.

@brentvatne
Last active March 14, 2019 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brentvatne/6a1dcb32f6ca3d478eed4c7dc8fbdd24 to your computer and use it in GitHub Desktop.
Save brentvatne/6a1dcb32f6ca3d478eed4c7dc8fbdd24 to your computer and use it in GitHub Desktop.
platform :ios, '10.0'
require_relative '../node_modules/@unimodules/core/podfile-macro'
# don't just copy and paste this, notice that the target names should align with what is already in your Podfile
target 'YourAppNameHere' do
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'RCTAnimation',
'RCTImage',
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
use_unimodules!
target 'YourAppNameHereTests' do
inherit! :search_paths
end
end
@petekp
Copy link

petekp commented Mar 14, 2019

I found this gist via https://www.npmjs.com/package/@unimodules/react-native-platform

It may be out of date. I've seen a few different permutations of the unimodule installation process that vary in subtle ways.

For this gist, I believe require_relative '../node_modules/@unimodules/core/podfile-macro' should instead be require_relative '../node_modules/@unimodules/react-native-platform/podfile-macro' (react-native-platform instead of core)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment