-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
5,387 additions
and
2,222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 0 additions & 77 deletions
77
android/app/src/debug/java/com/betterrail/ReactNativeFlipper.java
This file was deleted.
Oops, something went wrong.
78 changes: 39 additions & 39 deletions
78
android/app/src/main/java/com/betterrail/MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
package com.betterrail; | ||
// package com.betterrail; | ||
|
||
import android.os.Bundle; | ||
import com.facebook.react.ReactActivity; | ||
import com.facebook.react.ReactActivityDelegate; | ||
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint; | ||
import com.facebook.react.defaults.DefaultReactActivityDelegate; | ||
// import android.os.Bundle; | ||
// import com.facebook.react.ReactActivity; | ||
// import com.facebook.react.ReactActivityDelegate; | ||
// import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint; | ||
// import com.facebook.react.defaults.DefaultReactActivityDelegate; | ||
|
||
public class MainActivity extends ReactActivity { | ||
// public class MainActivity extends ReactActivity { | ||
|
||
/** | ||
* Returns the name of the main component registered from JavaScript. This is used to schedule | ||
* rendering of the component. | ||
*/ | ||
@Override | ||
protected String getMainComponentName() { | ||
return "BetterRail"; | ||
} | ||
// /** | ||
// * Returns the name of the main component registered from JavaScript. This is used to schedule | ||
// * rendering of the component. | ||
// */ | ||
// @Override | ||
// protected String getMainComponentName() { | ||
// return "BetterRail"; | ||
// } | ||
|
||
/** | ||
* Fix for react-native-screens (https://github.com/software-mansion/react-native-screens#android) | ||
*/ | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(null); | ||
} | ||
// /** | ||
// * Fix for react-native-screens (https://github.com/software-mansion/react-native-screens#android) | ||
// */ | ||
// @Override | ||
// protected void onCreate(Bundle savedInstanceState) { | ||
// super.onCreate(null); | ||
// } | ||
|
||
/** | ||
* Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link | ||
* DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React | ||
* (aka React 18) with two boolean flags. | ||
*/ | ||
@Override | ||
protected ReactActivityDelegate createReactActivityDelegate() { | ||
return new DefaultReactActivityDelegate( | ||
this, | ||
getMainComponentName(), | ||
// If you opted-in for the New Architecture, we enable the Fabric Renderer. | ||
DefaultNewArchitectureEntryPoint.getFabricEnabled(), // fabricEnabled | ||
// If you opted-in for the New Architecture, we enable Concurrent React (i.e. React 18). | ||
DefaultNewArchitectureEntryPoint.getConcurrentReactEnabled() // concurrentRootEnabled | ||
); | ||
} | ||
} | ||
// /** | ||
// * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link | ||
// * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React | ||
// * (aka React 18) with two boolean flags. | ||
// */ | ||
// @Override | ||
// protected ReactActivityDelegate createReactActivityDelegate() { | ||
// return new DefaultReactActivityDelegate( | ||
// this, | ||
// getMainComponentName(), | ||
// // If you opted-in for the New Architecture, we enable the Fabric Renderer. | ||
// DefaultNewArchitectureEntryPoint.getFabricEnabled(), // fabricEnabled | ||
// // If you opted-in for the New Architecture, we enable Concurrent React (i.e. React 18). | ||
// DefaultNewArchitectureEntryPoint.getConcurrentReactEnabled() // concurrentRootEnabled | ||
// ); | ||
// } | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.betterrail | ||
|
||
import com.facebook.react.ReactActivity | ||
import com.facebook.react.ReactActivityDelegate | ||
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled | ||
import com.facebook.react.defaults.DefaultReactActivityDelegate | ||
|
||
class MainActivity : ReactActivity() { | ||
|
||
/** | ||
* Returns the name of the main component registered from JavaScript. This is used to schedule | ||
* rendering of the component. | ||
*/ | ||
override fun getMainComponentName(): String = "BetterRail" | ||
|
||
/** | ||
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] | ||
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled] | ||
*/ | ||
override fun createReactActivityDelegate(): ReactActivityDelegate = | ||
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) | ||
} |
Oops, something went wrong.