fix(lib/react/native): do not do patches until wait matches

This commit is contained in:
PalmDevs 2025-07-31 19:19:40 +07:00
parent 578b78dd7e
commit b8ed2bf334
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA
4 changed files with 6 additions and 7 deletions

View file

@ -0,0 +1,4 @@
import type { RunApplicationCallback } from '@revenge-mod/react/types'
export const sBeforeRunApplication = new Set<RunApplicationCallback>()
export const sAfterRunApplication = new Set<RunApplicationCallback>()

View file

@ -1,4 +1,4 @@
import { sAfterRunApplication, sBeforeRunApplication } from './patches'
import { sAfterRunApplication, sBeforeRunApplication } from './_internal'
import type { RunApplicationCallback } from '@revenge-mod/react/types'
/**

View file

@ -1,9 +1,6 @@
import { after, before } from '@revenge-mod/patcher'
import { ReactNative } from '..'
import type { RunApplicationCallback } from '../types'
export const sBeforeRunApplication = new Set<RunApplicationCallback>()
export const sAfterRunApplication = new Set<RunApplicationCallback>()
import { sAfterRunApplication, sBeforeRunApplication } from './_internal'
before(ReactNative.AppRegistry, 'runApplication', args => {
for (const cb of sBeforeRunApplication)

View file

@ -1,4 +1,2 @@
// Initialize the wait immediately, so we don't miss the actual modules before the re-exports
import '.'
import './native/patches'