chore: add more shims
This commit is contained in:
parent
4a770ca791
commit
abf3d48c32
4 changed files with 21 additions and 0 deletions
|
|
@ -90,6 +90,18 @@ export default async function build(dev = Dev, log = true) {
|
|||
find: 'react-native',
|
||||
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(),
|
||||
|
|
|
|||
3
shims/@react-navigation~native.ts
Normal file
3
shims/@react-navigation~native.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { ReactNavigationNative } from '@revenge-mod/externals/react-navigation'
|
||||
|
||||
module.exports = ReactNavigationNative
|
||||
3
shims/@react-navigation~stack.ts
Normal file
3
shims/@react-navigation~stack.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { ReactNavigationStack } from '@revenge-mod/externals/react-navigation'
|
||||
|
||||
module.exports = ReactNavigationStack
|
||||
3
shims/@shopify~flash-list.ts
Normal file
3
shims/@shopify~flash-list.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { FlashList } from '@revenge-mod/externals/shopify'
|
||||
|
||||
module.exports = FlashList
|
||||
Loading…
Add table
Reference in a new issue