File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
android/src/main/java/com/devialab/exif Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 55import java .util .List ;
66
77import com .facebook .react .ReactPackage ;
8+ import com .facebook .react .bridge .JavaScriptModule ;
89import com .facebook .react .bridge .NativeModule ;
910import com .facebook .react .bridge .ReactApplicationContext ;
1011import com .facebook .react .uimanager .ViewManager ;
@@ -19,6 +20,15 @@ public List<NativeModule> createNativeModules(ReactApplicationContext reactConte
1920 );
2021 }
2122
23+ // Do not annotate the method with @Override
24+ // This will provide backward compatibility for apps using react-native version < 0.47
25+ // Breaking change in react-native version 0.47 : Android Remove unused createJSModules calls
26+ // Find more information here : https://github.com/facebook/react-native/releases/tag/v0.47.2
27+ // https://github.com/facebook/react-native/commit/ce6fb337a146e6f261f2afb564aa19363774a7a8
28+ public List <Class <? extends JavaScriptModule >> createJSModules () {
29+ return Collections .emptyList ();
30+ }
31+
2232 @ Override
2333 public List <ViewManager > createViewManagers (ReactApplicationContext reactContext ) {
2434 return Collections .emptyList ();
You can’t perform that action at this time.
0 commit comments