2025-04-27 14:45:14 +07:00
|
|
|
import { yielded } from '@revenge-mod/utils/generators'
|
|
|
|
|
|
2025-04-27 21:14:41 +07:00
|
|
|
import { lookupModuleId, lookupModuleIds } from '../finders'
|
|
|
|
|
import { byProps } from '../finders/filters'
|
2025-04-27 14:45:14 +07:00
|
|
|
|
|
|
|
|
export const ReactModuleId = yielded(lookupModuleIds(byProps<typeof import('react')>('useState')), 1)!
|
|
|
|
|
export const ReactNativeModuleId = lookupModuleId(byProps<typeof import('react-native')>('AppRegistry'))!
|
2025-04-27 20:56:51 +07:00
|
|
|
export const ReactJsxRuntimeModuleId = yielded(lookupModuleIds(byProps<typeof import('react/jsx-runtime')>('jsx'))!, 1)
|
2025-04-27 14:45:14 +07:00
|
|
|
|
|
|
|
|
export const React = __r(ReactModuleId) as typeof import('react')
|
|
|
|
|
export const ReactNative = __r(ReactNativeModuleId) as typeof import('react-native')
|
2025-04-27 20:56:51 +07:00
|
|
|
export const ReactJsxRuntime = __r(ReactJsxRuntimeModuleId) as typeof import('react/jsx-runtime')
|