Skip to content

Commit 47eaff3

Browse files
author
Shawn Dempsey
committed
TM working on iOS
1 parent c6be49f commit 47eaff3

File tree

8 files changed

+18794
-12742
lines changed

8 files changed

+18794
-12742
lines changed

RNCAsyncStorage.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/boost" "$(PODS_ROOT)/boost-for-react-native" "$(PODS_ROOT)/RCT-Folly"',
2424
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
2525
}
26-
s.platforms = { ios: '11.0', tvos: '11.0', :osx => "10.14" }
26+
s.platforms = { ios: '12.4', tvos: '11.0', :osx => "10.15" }
2727
s.compiler_flags = folly_compiler_flags + ' -DRCT_NEW_ARCH_ENABLED'
2828

2929
s.dependency "React"

babel.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
2+
"presets": [
3+
["@babel/preset-react", {
4+
"runtime": "automatic"
5+
}]
6+
]
37
};

example/AsyncStorageExample.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Pod::Spec.new do |s|
1111
s.source = { :git => package['repository']['url'] }
1212
s.summary = 'AsyncStorage example app'
1313

14-
s.ios.deployment_target = '12.0'
15-
s.osx.deployment_target = '10.14'
14+
s.ios.deployment_target = '12.4'
15+
s.osx.deployment_target = '10.15'
1616

1717
s.dependency 'React'
1818
s.dependency 'ReactTestApp-DevSupport'

example/ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ workspace 'AsyncStorageExample.xcworkspace'
55
use_flipper! false
66

77
options = {
8-
:fabric_enabled => false,
8+
:fabric_enabled => true,
99
:hermes_enabled => false,
10-
:turbomodule_enabled => false,
10+
:turbomodule_enabled => true,
1111
}
1212

1313
use_test_app! options do |target|

ios/RNCAsyncStorage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#import <React/RCTInvalidating.h>
1212

1313
#ifdef RCT_NEW_ARCH_ENABLED
14-
#import <rnasyncstorage/rnasyncstorage.h>
14+
#import <tmSpecs/tmSpecs.h>
1515
#endif
1616

1717
#import "RNCAsyncStorageDelegate.h"

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
"devDependencies": {
7070
"@babel/core": "^7.12.0",
7171
"@babel/preset-env": "^7.1.6",
72+
"@babel/preset-react": "^7.22.5",
73+
"@react-native-community/cli": "^11.3.2",
7274
"@react-native-community/eslint-config": "^3.0.0",
7375
"@semantic-release/changelog": "^6.0.0",
7476
"@semantic-release/git": "^10.0.0",
@@ -85,9 +87,10 @@
8587
"prettier": "^2.5.1",
8688
"react": "18.2.0",
8789
"react-dom": "18.2.0",
88-
"react-native": "0.71.2",
90+
"react-native": "0.71.10",
8991
"react-native-builder-bob": "^0.18.0",
90-
"react-native-macos": "^0.68.0",
92+
"react-native-codegen": "^0.71.5",
93+
"react-native-macos": "^0.71.11",
9194
"react-native-test-app": "^2.3.10",
9295
"react-native-web": "^0.17.0",
9396
"react-native-windows": "^0.71.0",
@@ -195,9 +198,9 @@
195198
]
196199
},
197200
"codegenConfig": {
198-
"name": "rnasyncstorage",
201+
"name": "tmSpecs",
199202
"type": "modules",
200-
"jsSrcsDir": "./src",
203+
"jsSrcsDir": "src",
201204
"android": {
202205
"javaPackageName": "com.reactnativecommunity.asyncstorage"
203206
}

react-native.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ const project = (() => {
22
const path = require('path');
33
try {
44
const { configureProjects } = require('react-native-test-app');
5-
const iosProject = iosProjectPath('ios');
65
return configureProjects({
76
android: {
87
sourceDir: path.join('example', 'android'),
98
},
109
ios: {
11-
sourceDir: 'example/ios',
12-
...(iosProject ? { project: iosProject } : undefined),
10+
sourceDir: path.join('example', 'ios'),
1311
},
1412
windows: {
1513
sourceDir: path.join('example', 'windows'),

0 commit comments

Comments
 (0)