2025-06-03 16:24:58 +07:00
|
|
|
import {
|
|
|
|
|
byDependencies,
|
|
|
|
|
byName,
|
|
|
|
|
byProps,
|
|
|
|
|
preferExports,
|
|
|
|
|
} from '@revenge-mod/modules/finders/filters'
|
2025-05-18 22:24:48 +07:00
|
|
|
import { lookupModule } from '@revenge-mod/modules/finders/lookup'
|
2025-06-12 23:21:32 +07:00
|
|
|
import { ReactJsxRuntimeModuleId, ReactModuleId } from '@revenge-mod/react'
|
2025-05-08 18:53:30 +07:00
|
|
|
import { proxify } from '@revenge-mod/utils/proxy'
|
|
|
|
|
|
2025-06-13 23:35:23 +07:00
|
|
|
const { loose, relative } = byDependencies
|
|
|
|
|
|
2025-05-18 22:24:48 +07:00
|
|
|
const [, _createClassModuleId] = lookupModule(byName('_createClass'))
|
|
|
|
|
const [, _classCallCheckModuleId] = lookupModule(byName('_classCallCheck'))
|
2025-05-08 18:53:30 +07:00
|
|
|
|
2025-06-03 16:24:58 +07:00
|
|
|
export let ReactNavigationNative: typeof import('@react-navigation/native') =
|
|
|
|
|
proxify(
|
|
|
|
|
() => {
|
|
|
|
|
const [module] = lookupModule(
|
|
|
|
|
preferExports(
|
|
|
|
|
byProps<typeof ReactNavigationNative>('useLinkTo'),
|
|
|
|
|
byDependencies(
|
2025-06-13 23:35:23 +07:00
|
|
|
loose([
|
2025-06-03 16:24:58 +07:00
|
|
|
[],
|
2025-06-13 23:35:23 +07:00
|
|
|
loose([
|
2025-06-03 16:24:58 +07:00
|
|
|
[_createClassModuleId, _classCallCheckModuleId],
|
|
|
|
|
]),
|
|
|
|
|
]),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
{
|
2025-07-04 21:38:37 +07:00
|
|
|
uninitialized: true,
|
2025-06-03 16:24:58 +07:00
|
|
|
},
|
|
|
|
|
)
|
2025-05-08 18:53:30 +07:00
|
|
|
|
2025-06-03 16:24:58 +07:00
|
|
|
if (module) return (ReactNavigationNative = module)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
hint: 'object',
|
|
|
|
|
},
|
|
|
|
|
)!
|
2025-05-08 18:53:30 +07:00
|
|
|
|
2025-06-03 16:24:58 +07:00
|
|
|
export let ReactNavigationStack: typeof import('@react-navigation/stack') =
|
|
|
|
|
proxify(
|
|
|
|
|
() => {
|
|
|
|
|
const [module] = lookupModule(
|
|
|
|
|
preferExports(
|
2025-06-14 21:49:32 +07:00
|
|
|
byProps<typeof ReactNavigationStack>('StackView'),
|
2025-06-13 23:35:23 +07:00
|
|
|
byDependencies(
|
|
|
|
|
loose([
|
|
|
|
|
relative.withDependencies(
|
|
|
|
|
loose([
|
2025-06-12 23:21:32 +07:00
|
|
|
[[]],
|
|
|
|
|
ReactModuleId,
|
|
|
|
|
ReactJsxRuntimeModuleId,
|
|
|
|
|
]),
|
2025-06-13 23:35:23 +07:00
|
|
|
1,
|
|
|
|
|
),
|
|
|
|
|
undefined,
|
|
|
|
|
relative(3),
|
|
|
|
|
]),
|
2025-06-03 16:24:58 +07:00
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
{
|
2025-07-04 21:38:37 +07:00
|
|
|
uninitialized: true,
|
2025-06-03 16:24:58 +07:00
|
|
|
},
|
|
|
|
|
)
|
2025-05-08 18:53:30 +07:00
|
|
|
|
2025-06-03 16:24:58 +07:00
|
|
|
if (module) return (ReactNavigationStack = module)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
hint: 'object',
|
|
|
|
|
},
|
|
|
|
|
)!
|
2025-05-08 18:53:30 +07:00
|
|
|
|
|
|
|
|
export interface ReactNavigationParamList {
|
|
|
|
|
[Page: string]: any
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
|
namespace ReactNavigation {
|
|
|
|
|
interface RootParamList extends ReactNavigationParamList {}
|
|
|
|
|
}
|
|
|
|
|
}
|