Files
paseo/vendor/react-native-gpui/modules/gesture-handler/react-native.config.js
T

26 lines
895 B
JavaScript
Vendored

module.exports = {
dependency: {
platforms: {
desktop: {
cmake: 'desktop',
cppProvider: 'create_gpui_gesture_handler_module',
componentCodegenPackage: 'react-native-gesture-handler',
componentDescriptors: [
'RNGestureHandlerButtonComponentDescriptor',
'RNGestureHandlerRootViewComponentDescriptor',
],
componentHeaders: [
'react/renderer/components/rngesturehandler_codegen/ComponentDescriptors.h',
],
// Metro: replace these files of installed packages for gpui.
sourceOverrides: {
'react-native-gesture-handler/src/handlers/customDirectEventTypes.ts':
'./src/customDirectEventTypes.desktop.ts',
'react-native-gesture-handler/src/v3/components/GestureButtons.tsx':
'./src/GestureButtons.desktop.tsx',
},
},
},
},
};