diff --git a/scripts/build.ts b/scripts/build.ts index 0c62b9c..f8ada04 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -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(), diff --git a/shims/@react-navigation~native.ts b/shims/@react-navigation~native.ts new file mode 100644 index 0000000..a339bf6 --- /dev/null +++ b/shims/@react-navigation~native.ts @@ -0,0 +1,3 @@ +import { ReactNavigationNative } from '@revenge-mod/externals/react-navigation' + +module.exports = ReactNavigationNative diff --git a/shims/@react-navigation~stack.ts b/shims/@react-navigation~stack.ts new file mode 100644 index 0000000..08d6f88 --- /dev/null +++ b/shims/@react-navigation~stack.ts @@ -0,0 +1,3 @@ +import { ReactNavigationStack } from '@revenge-mod/externals/react-navigation' + +module.exports = ReactNavigationStack diff --git a/shims/@shopify~flash-list.ts b/shims/@shopify~flash-list.ts new file mode 100644 index 0000000..ac18604 --- /dev/null +++ b/shims/@shopify~flash-list.ts @@ -0,0 +1,3 @@ +import { FlashList } from '@revenge-mod/externals/shopify' + +module.exports = FlashList