Skip to content

Commit 6822204

Browse files
committed
Enable new architecture
1 parent 5e222de commit 6822204

File tree

4 files changed

+38
-3
lines changed

4 files changed

+38
-3
lines changed

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a
3737
# your application. You should enable this flag either if you want
3838
# to write custom TurboModules/Fabric components OR use libraries that
3939
# are providing them.
40-
newArchEnabled=false
40+
newArchEnabled=true
4141

4242
# Use this property to enable or disable the Hermes JS engine.
4343
# If set to false, you will be using JSC instead.

ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ target 'edge' do
5050
:path => config[:reactNativePath],
5151
# An absolute path to your application root.
5252
:app_path => "#{Pod::Config.instance.installation_root}/..",
53-
:fabric_enabled => false,
53+
:fabric_enabled => true,
5454
:hermes_enabled => true
5555
)
5656

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3426,6 +3426,6 @@ SPEC CHECKSUMS:
34263426
ZIPFoundation: b1f0de4eed33e74a676f76e12559ab6b75990197
34273427
ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5
34283428

3429-
PODFILE CHECKSUM: 2ab3d4f06447f2252ef672833166c9c33f3e8475
3429+
PODFILE CHECKSUM: 8c119d1d2fda8d2ceda1c186a5415d0c7473469a
34303430

34313431
COCOAPODS: 1.16.2
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
diff --git a/node_modules/react-native-contacts/src/NativeContacts.ts b/node_modules/react-native-contacts/src/NativeContacts.ts
2+
index fc5f61a..9fa1903 100644
3+
--- a/node_modules/react-native-contacts/src/NativeContacts.ts
4+
+++ b/node_modules/react-native-contacts/src/NativeContacts.ts
5+
@@ -22,20 +22,20 @@ export interface Spec extends TurboModule {
6+
requestPermission: () => Promise<PermissionType>;
7+
writePhotoToPath: (contactId: string, file: string) => Promise<boolean>;
8+
iosEnableNotesUsage: (enabled: boolean) => void;
9+
- getGroups(): Promise<Group[]>;
10+
- getGroup: (identifier: string) => Promise<Group | null>;
11+
- deleteGroup(identifier: string): Promise<boolean>;
12+
- updateGroup(identifier: string, groupData: Object): Promise<Group>;
13+
- addGroup(group: Object): Promise<Group>;
14+
- contactsInGroup(identifier: string): Promise<Contact[]>;
15+
- addContactsToGroup(
16+
+ getGroups?: () => Promise<Group[]>;
17+
+ getGroup?: (identifier: string) => Promise<Group | null>;
18+
+ deleteGroup?: (identifier: string) => Promise<boolean>;
19+
+ updateGroup?: (identifier: string, groupData: Object) => Promise<Group>;
20+
+ addGroup?: (group: Object) => Promise<Group>;
21+
+ contactsInGroup?: (identifier: string) => Promise<Contact[]>;
22+
+ addContactsToGroup?: (
23+
groupIdentifier: string,
24+
contactIdentifiers: string[]
25+
- ): Promise<boolean>;
26+
- removeContactsFromGroup(
27+
+ ) => Promise<boolean>;
28+
+ removeContactsFromGroup?: (
29+
groupIdentifier: string,
30+
contactIdentifiers: string[]
31+
- ): Promise<boolean>;
32+
+ ) => Promise<boolean>;
33+
}
34+
35+
export default TurboModuleRegistry.get<Spec>("RCTContacts");

0 commit comments

Comments
 (0)