Skip to content

Commit 12d5827

Browse files
committed
fix android RN breaking change - remove createJSModules
1 parent bdd64f0 commit 12d5827

17 files changed

Lines changed: 4653 additions & 290 deletions

File tree

.babelrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"presets": ["flow"]
2+
"presets": [
3+
"flow"
4+
]
35
}

.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ root = true
22

33
[*]
44
indent_style = space
5-
indent_size = 2
5+
indent_size = 2
6+
insert_final_newline = true

.eslintrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@
88
"env": {
99
"es6": true,
1010
"jasmine": true,
11+
"jest": true
1112
},
1213

1314
"plugins": [
14-
"react"
15+
"react",
16+
"flowtype"
17+
],
18+
"extends": [
19+
"plugin:react/recommended",
20+
"plugin:flowtype/recommended"
1521
],
1622

1723
// Map from global var to bool specifying if it can be redefined

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.11.1

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 1.0.5 (UPCOMING)
22
- improved documentation
33
- when you want to understand or something's wrong please have a look at [this detailed documentation + code sample](https://github.com/MacKentoch/react-native-beacons-manager/tree/master/examples/samples)
4+
- fix `React Native 0.47` android breaking change: `Remove unused createJSModules`
45

56
## 1.0.4 (RELEASE)
67
- same as v1.0.3 (npm publish nightmare...)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
2-
connection.project.dir=
1+
#Tue Aug 15 09:41:57 CEST 2017
32
eclipse.preferences.version=1
3+
connection.project.dir=

android/src/main/java/com/mackentoch/beaconsandroid/BeaconsAndroidPackage.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public List<ViewManager> createViewManagers(ReactApplicationContext reactContext
2323
return new ArrayList<>();
2424
}
2525

26-
@Override
2726
public List<Class<? extends JavaScriptModule>> createJSModules() {
2827
return new ArrayList<>();
2928
}

examples/BeaconsDemo/.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
"env": {
99
"es6": true,
10-
"jasmine": true,
10+
"jasmine": true
1111
},
1212

1313
"plugins": [

jsconfig.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"compilerOptions": {
3-
"allowJs": true,
4-
"allowSyntheticDefaultImports": true
5-
},
6-
"exclude": [
7-
"node_modules"
2+
"typeAcquisition": {
3+
"include": [
4+
"react",
5+
"react-native"
86
]
7+
}
98
}

lib/module.android.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// @flow
22

3-
'use strict';
4-
53
import { NativeModules } from 'react-native';
64

75
const beaconsAndroid: any = NativeModules.BeaconsAndroidModule;

0 commit comments

Comments
 (0)