Skip to content

Commit

Permalink
feat: RN 0.73 compatibility (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak authored Jun 21, 2023
1 parent a3da74c commit f5cf86e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if (isNewArchitectureEnabled()) {


android {
namespace = "com.reactcommunity.rndatetimepicker"
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')

// Used to override the NDK path/version on internal CI or by allowing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.reactcommunity.rndatetimepicker;


import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.facebook.react.TurboReactPackage;
Expand All @@ -10,9 +9,7 @@
import com.facebook.react.module.model.ReactModuleInfo;
import com.facebook.react.module.model.ReactModuleInfoProvider;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class RNDateTimePickerPackage extends TurboReactPackage {
Expand Down Expand Up @@ -58,14 +55,4 @@ public ReactModuleInfoProvider getReactModuleInfoProvider() {
return moduleInfos;
};
}

@NonNull
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>();
modules.add(new DatePickerModule(reactContext));
modules.add(new TimePickerModule(reactContext));

return modules;
}
}

0 comments on commit f5cf86e

Please sign in to comment.