diff --git a/SampleApp/javascript/ios/Podfile b/SampleApp/javascript/ios/Podfile index e91a4b006..905ff5e7e 100644 --- a/SampleApp/javascript/ios/Podfile +++ b/SampleApp/javascript/ios/Podfile @@ -1,7 +1,7 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' require_relative '../node_modules/react-native/scripts/react_native_pods' -platform :ios, '10.0' +platform :ios, '12.0' target 'SampleApp' do config = use_native_modules! @@ -11,3 +11,18 @@ end target 'Rich Notification Extension' do pod 'Iterable-iOS-AppExtensions' end + +deployment_target = '12.0' + +post_install do |installer| + installer.generated_projects.each do |project| + project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target + end + end + project.build_configurations.each do |config| + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target + end + end +end \ No newline at end of file diff --git a/SampleApp/typescript/babel.config.js b/SampleApp/typescript/babel.config.js index f842b77fc..13acc46d2 100644 --- a/SampleApp/typescript/babel.config.js +++ b/SampleApp/typescript/babel.config.js @@ -1,3 +1,5 @@ module.exports = { - presets: ['module:metro-react-native-babel-preset'], + presets: [['module:metro-react-native-babel-preset', { + unstable_disableES6Transforms: true + }]], }; diff --git a/SampleApp/typescript/ios/Podfile b/SampleApp/typescript/ios/Podfile index e91a4b006..905ff5e7e 100644 --- a/SampleApp/typescript/ios/Podfile +++ b/SampleApp/typescript/ios/Podfile @@ -1,7 +1,7 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' require_relative '../node_modules/react-native/scripts/react_native_pods' -platform :ios, '10.0' +platform :ios, '12.0' target 'SampleApp' do config = use_native_modules! @@ -11,3 +11,18 @@ end target 'Rich Notification Extension' do pod 'Iterable-iOS-AppExtensions' end + +deployment_target = '12.0' + +post_install do |installer| + installer.generated_projects.each do |project| + project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target + end + end + project.build_configurations.each do |config| + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target + end + end +end \ No newline at end of file diff --git a/SampleApp/typescript/package.json b/SampleApp/typescript/package.json index 624cf6d79..add594b7f 100644 --- a/SampleApp/typescript/package.json +++ b/SampleApp/typescript/package.json @@ -36,7 +36,7 @@ "@types/react-native": "^0.62.10", "@types/react-native-vector-icons": "^6.4.5", "eslint": "^6.8.0", - "metro-react-native-babel-preset": "^0.58.0", + "metro-react-native-babel-preset": "^0.59.0", "react-test-renderer": "16.9.0" } }