mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Just thought I'd add these instructions so devs don't have to check the docs. Also, it makes iOS match Android with instructions in the configuration files ## Changelog N/A (in my opinion) Pull Request resolved: https://github.com/facebook/react-native/pull/30461 Test Plan: N/A (because not a code change) Reviewed By: hramos Differential Revision: D25309687 Pulled By: TheSavior fbshipit-source-id: a1907089b9d2e7fe6f2498ce27129c3ae65f7c9a
29 lines
736 B
Ruby
29 lines
736 B
Ruby
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
|
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
|
|
|
platform :ios, '10.0'
|
|
|
|
target 'HelloWorld' do
|
|
config = use_native_modules!
|
|
|
|
use_react_native(
|
|
:path => config[:reactNativePath],
|
|
# to enable hermes on iOS, change `false` to `true` and then install pods
|
|
:hermes_enabled => false
|
|
)
|
|
|
|
target 'HelloWorldTests' do
|
|
inherit! :complete
|
|
# Pods for testing
|
|
end
|
|
|
|
# Enables Flipper.
|
|
#
|
|
# Note that if you have use_frameworks! enabled, Flipper will not work and
|
|
# you should disable these next few lines.
|
|
use_flipper!
|
|
post_install do |installer|
|
|
flipper_post_install(installer)
|
|
end
|
|
end
|