Skip to content

react-native-gesture-image-viewer@2.0.0-beta.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 06 Aug 02:35
· 7 commits to main since this release
33dcaab

Major Changes

  • db35df7: feat: upgraded react-native-reanimated v4

    Reanimated Configure Migration Guide:

    npm install react-native-worklets
    // babel.config.js
    module.exports = (api) => {
      api.cache(true);
    
      return getConfig(
        {
          presets: ['babel-preset-expo'],
          plugins: [
            // for web
            '@babel/plugin-proposal-export-namespace-from',
            // react-native-worklets/plugin has to be listed last.
    -       'react-native-reanimated/plugin',
    +       'react-native-worklets/plugin',
          ],
        },
        { root, pkg },
      );
    };
    // metro.config.js
    const path = require('path');
    const { getDefaultConfig } = require('@expo/metro-config');
    const { withMetroConfig } = require('react-native-monorepo-config');
    - const { wrapWithReanimatedMetroConfig } = require('react-native-reanimated/metro-config');
    
    const root = path.resolve(__dirname, '..');
    
    /**
     * Metro configuration
     * https://facebook.github.io/metro/docs/configuration
     *
     * @type {import('metro-config').MetroConfig}
     */
    const config = withMetroConfig(getDefaultConfig(__dirname), {
      root,
      dirname: __dirname,
    });
    
    config.resolver.unstable_enablePackageExports = true;
    
    - module.exports = wrapWithReanimatedMetroConfig(config);
    + module.exports = config