diff --git a/lib/react-native/.eslintrc.json b/lib/react-native/.eslintrc.json new file mode 100644 index 00000000000..69944eabf4d --- /dev/null +++ b/lib/react-native/.eslintrc.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "@react-native-community", + "../../.eslintrc" + ] +} \ No newline at end of file diff --git a/lib/react-native.js b/lib/react-native/index.js similarity index 95% rename from lib/react-native.js rename to lib/react-native/index.js index 882a8d0d363..00943b2e230 100644 --- a/lib/react-native.js +++ b/lib/react-native/index.js @@ -16,8 +16,6 @@ // //////////////////////////////////////////////////////////////////////////// -// eslint sourceType: module - import { Platform, NativeModules } from "react-native"; //switch how babel transpiled code creates children objects. @@ -42,9 +40,9 @@ if (typeof global.Realm === "undefined") { ); } -require("./extensions")(global.Realm); +require("../extensions")(global.Realm); -const utils = require("./utils"); +const utils = require("../utils"); const versions = utils.getVersions(); global.Realm.App._setVersions(versions); diff --git a/package.json b/package.json index 0f7fae175b2..00ddf421c6f 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "types": "types/index.d.ts", "main": "lib/index.js", - "react-native": "lib/react-native.js", + "react-native": "lib/react-native/index.js", "files": [ "cmake", "lib",