Skip to content

Commit ceafad3

Browse files
a7medevAyaMahmoud148
authored andcommitted
refactor(example): upgrade to react native 0.75.4
1 parent 6bc4355 commit ceafad3

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

examples/default/ios/Podfile

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
require_relative '../node_modules/react-native/scripts/react_native_pods'
2-
3-
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
1+
# Resolve react_native_pods.rb with node to allow for hoisting
2+
require Pod::Executable.execute_command('node', ['-p',
3+
'require.resolve(
4+
"react-native/scripts/react_native_pods.rb",
5+
{paths: [process.argv[1]]},
6+
)', __dir__]).strip
47

58
platform :ios, '13.4'
69
prepare_react_native_project!
@@ -15,16 +18,9 @@ target 'InstabugExample' do
1518
config = use_native_modules!
1619
rn_maps_path = '../node_modules/react-native-maps'
1720
pod 'react-native-google-maps', :path => rn_maps_path
18-
# Flags change depending on the env values.
19-
flags = get_default_flags()
2021

2122
use_react_native!(
2223
:path => config[:reactNativePath],
23-
# Hermes is now enabled by default. Disable by setting this flag to false.
24-
# Upcoming versions of React Native may rely on get_default_flags(), but
25-
# we make it explicit here to aid in the React Native upgrade process.
26-
:hermes_enabled => flags[:hermes_enabled],
27-
:fabric_enabled => flags[:fabric_enabled],
2824
# An absolute path to your application root.
2925
:app_path => "#{Pod::Config.instance.installation_root}/.."
3026
)
@@ -35,11 +31,12 @@ target 'InstabugExample' do
3531
end
3632

3733
post_install do |installer|
34+
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
3835
react_native_post_install(
3936
installer,
40-
# Set `mac_catalyst_enabled` to `true` in order to apply patches
41-
# necessary for Mac Catalyst builds
42-
:mac_catalyst_enabled => false
37+
config[:reactNativePath],
38+
:mac_catalyst_enabled => false,
39+
# :ccache_enabled => true
4340
)
4441
end
4542
end

examples/default/ios/Podfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,10 @@ SPEC CHECKSUMS:
20562056
react-native-maps: 72a8a903f8a1b53e2c777ba79102078ab502e0bf
20572057
react-native-safe-area-context: 142fade490cbebbe428640b8cbdb09daf17e8191
20582058
react-native-slider: 4a0f3386a38fc3d2d955efc515aef7096f7d1ee4
2059+
<<<<<<< HEAD
20592060
react-native-webview: 926d2665cf3196e39c4449a72d136d0a53b9df8a
2061+
=======
2062+
>>>>>>> 4548a06a (refactor(example): upgrade to react native 0.75.4)
20602063
React-nativeconfig: 8c83d992b9cc7d75b5abe262069eaeea4349f794
20612064
React-NativeModulesApple: 9f7920224a3b0c7d04d77990067ded14cee3c614
20622065
React-perflogger: 59e1a3182dca2cee7b9f1f7aab204018d46d1914

0 commit comments

Comments
 (0)