chore: add more shims

This commit is contained in:
PalmDevs 2025-07-25 02:19:06 +07:00
parent 4a770ca791
commit abf3d48c32
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA
4 changed files with 21 additions and 0 deletions

View file

@ -90,6 +90,18 @@ export default async function build(dev = Dev, log = true) {
find: 'react-native', find: 'react-native',
replacement: `${ShimsDir}/react-native.ts`, replacement: `${ShimsDir}/react-native.ts`,
}, },
{
find: '@react-navigation/native',
replacement: `${ShimsDir}/@react-navigation~native.ts`,
},
{
find: '@react-navigation/stack',
replacement: `${ShimsDir}/@react-navigation~stack.ts`,
},
{
find: '@shopify/flash-list',
replacement: `${ShimsDir}/@shopify~flash-list.ts`,
},
], ],
}), }),
importGlobPlugin(), importGlobPlugin(),

View file

@ -0,0 +1,3 @@
import { ReactNavigationNative } from '@revenge-mod/externals/react-navigation'
module.exports = ReactNavigationNative

View file

@ -0,0 +1,3 @@
import { ReactNavigationStack } from '@revenge-mod/externals/react-navigation'
module.exports = ReactNavigationStack

View file

@ -0,0 +1,3 @@
import { FlashList } from '@revenge-mod/externals/shopify'
module.exports = FlashList