from 'react-native-gesture-handler' and at bundle-time, the library will be swapped out.
About the preset
The VMRP walks through thenode_modules of the package using it, constructing the relationship between Vega-ported packages and the equivalent library being requested by your application.
If the versions are equivalent, a mapping is established and the relationship is logged in the output.
If the versions aren’t equivalent, or the module resolver fails for any other reason, error outputs are logged.
Installation
The VMRP is distributed as a separate NPM package.-
To install, run the following command.
-
Include
babel-plugin-module-resolverwith this command. -
Install both the original third-party library and its Vega-ported library equivalent. For example, if you want to replace gesture handler with it’s Vega-equivalent library, you must install both packages in your package.json dependencies with their exact version, as shown.
Setup
After installation, you need to letbabel know that you have a new preset you want to use when building your code, which is done through a change to Babel’s configuration file.
This change is made either to a .babelrc or babel.config.js found in the same folder as your package.json file:

