template_0205
This commit is contained in:
26
RN_TEMPLATE/app/config/config.base.ts
Normal file
26
RN_TEMPLATE/app/config/config.base.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
export interface ConfigBaseProps {
|
||||
persistNavigation: "always" | "dev" | "prod" | "never"
|
||||
catchErrors: "always" | "dev" | "prod" | "never"
|
||||
exitRoutes: string[]
|
||||
}
|
||||
|
||||
export type PersistNavigationConfig = ConfigBaseProps["persistNavigation"]
|
||||
|
||||
const BaseConfig: ConfigBaseProps = {
|
||||
// This feature is particularly useful in development mode, but
|
||||
// can be used in production as well if you prefer.
|
||||
persistNavigation: "dev",
|
||||
|
||||
/**
|
||||
* Only enable if we're catching errors in the right environment
|
||||
*/
|
||||
catchErrors: "always",
|
||||
|
||||
/**
|
||||
* This is a list of all the route names that will exit the app if the back button
|
||||
* is pressed while in that screen. Only affects Android.
|
||||
*/
|
||||
exitRoutes: ["Welcome"],
|
||||
}
|
||||
|
||||
export default BaseConfig
|
||||
Reference in New Issue
Block a user