Skip to content

Commit 93a8cac

Browse files
refactor example
1 parent 75e9cb5 commit 93a8cac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+247
-250
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

example/native/android/app/build.gradle renamed to example/java/app/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
apply plugin: 'com.android.application'
22

33
project.ext.react = [
4-
entryFile: "example/native/index.js"
5-
// cliPath: "../../../../node_modules/react-native"
4+
entryFile: "example/index.js"
65
]
76

8-
apply from: "../../../../node_modules/react-native/react.gradle"
7+
apply from: "../../../node_modules/react-native/react.gradle"
98

109
android {
1110
compileSdkVersion rootProject.ext.compileSdkVersion
@@ -45,5 +44,5 @@ task copyDownloadableDepsToLibs(type: Copy) {
4544
into 'libs'
4645
}
4746

48-
apply from: file("../../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle");
49-
applyNativeModulesAppBuildGradle(project, "../../..")
47+
apply from: file("../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle");
48+
applyNativeModulesAppBuildGradle(project, "../..")

example/native/android/app/src/main/java/com/callstack/nativeexample/MainApplication.java renamed to example/java/app/src/main/java/com/callstack/nativeexample/MainApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public void onCreate() {
1818
List<ReactPackage> packages = new PackageList(this).getPackages();
1919
HashMap<String, Object> options = new HashMap<>();
2020
options.put("packages", packages);
21-
options.put("mainModuleName", "example/native/index");
21+
options.put("mainModuleName", "example/index");
2222

2323
BridgeManager.initialize(options, this);
2424
BridgeManager.getShared().startReactNative(init -> {

0 commit comments

Comments
 (0)