Skip to content

Commit f5cf86e

Browse files
authored
feat: RN 0.73 compatibility (#772)
1 parent a3da74c commit f5cf86e

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

android/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ if (isNewArchitectureEnabled()) {
2424

2525

2626
android {
27+
namespace = "com.reactcommunity.rndatetimepicker"
2728
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
2829

2930
// Used to override the NDK path/version on internal CI or by allowing

android/src/main/java/com/reactcommunity/rndatetimepicker/RNDateTimePickerPackage.java

-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.reactcommunity.rndatetimepicker;
22

33

4-
import androidx.annotation.NonNull;
54
import androidx.annotation.Nullable;
65

76
import com.facebook.react.TurboReactPackage;
@@ -10,9 +9,7 @@
109
import com.facebook.react.module.model.ReactModuleInfo;
1110
import com.facebook.react.module.model.ReactModuleInfoProvider;
1211

13-
import java.util.ArrayList;
1412
import java.util.HashMap;
15-
import java.util.List;
1613
import java.util.Map;
1714

1815
public class RNDateTimePickerPackage extends TurboReactPackage {
@@ -58,14 +55,4 @@ public ReactModuleInfoProvider getReactModuleInfoProvider() {
5855
return moduleInfos;
5956
};
6057
}
61-
62-
@NonNull
63-
@Override
64-
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
65-
List<NativeModule> modules = new ArrayList<>();
66-
modules.add(new DatePickerModule(reactContext));
67-
modules.add(new TimePickerModule(reactContext));
68-
69-
return modules;
70-
}
7158
}

0 commit comments

Comments
 (0)