Browse Source

Fix Compilation Error in React Native 0.47.0 (#452)

createJSModules was removedin React Native 0.47.0 and results in the attached Build Error.
removing @Override fixes build (didn't remove function because I don't know if it should be kept for downard compatability?)

```
node_modules/react-native-fetch-blob/android/src/main/java/com/RNFetchBlob/RNFetchBlobPackage.java:23: error: method does not override or implement a method from a supertype
    @Override
    ^
1 error

Incremental compilation of 1 classes completed in 0.219 secs.
:react-native-fetch-blob:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.
```
Hizoul 7 years ago
parent
commit
d1d07d0922
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobPackage.java

+ 0
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobPackage.java View File

20
         return modules;
20
         return modules;
21
     }
21
     }
22
 
22
 
23
-    @Override
24
     public List<Class<? extends JavaScriptModule>> createJSModules() {
23
     public List<Class<? extends JavaScriptModule>> createJSModules() {
25
         return Collections.emptyList();
24
         return Collections.emptyList();
26
     }
25
     }