Skip to content

Commit

Permalink
Build RNTester with Fabric when env variable 'USE_FABRIC' is set
Browse files Browse the repository at this point in the history
  • Loading branch information
empyrical committed Sep 14, 2020
1 parent 5716d9b commit f8ab639
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions packages/rn-tester/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,25 @@ def pods()

# Enable TurboModule
prefix_path = "../.."
use_react_native!(path:prefix_path)
fabric_enabled = false

# To use fabric: set the environment variable `USE_FABRIC` to 1, like below
# $ USE_FABRIC=1 bundle exec pod install
# or
# $ export USE_FABRIC=1
# $ bundle exec pod install
if ENV['USE_FABRIC'] == '1'
puts "Building RNTester with Fabric enabled."
fabric_enabled = true
end

use_react_native!(path:prefix_path, fabric_enabled: fabric_enabled)
pod 'ReactCommon/turbomodule/samples', :path => "#{prefix_path}/ReactCommon"

# Additional Pods which aren't included in the default Podfile
pod 'React-RCTPushNotification', :path => "#{prefix_path}/Libraries/PushNotificationIOS"
pod 'Yoga',:path => "#{prefix_path}/ReactCommon/yoga", :modular_headers => true
# Additional Pods which are classed as unstable
#
# To use fabric: add `fabric_enabled` option to the use_react_native method above, like below
# use_react_native!(path: "..", fabric_enabled: true)
end

target 'RNTester' do
Expand Down

0 comments on commit f8ab639

Please sign in to comment.