Skip to content

[docs]: nativewind and reanimated config issue #65

@pedromarquex

Description

@pedromarquex

Suggestion: The NativeWind docs should include the Reanimated Babel plugin in the example config. Without it, animations like animate-pulse don’t work in React Native projects.

// babel.config.js
module.exports = function (api) {
  api.cache(true);
  return {
    presets: [
      ['babel-preset-expo', { jsxImportSource: 'nativewind' }],
      'nativewind/babel',
    ],
    plugins: ['react-native-reanimated/plugin'], // required for animations
  };
};

Could we add this to the template in the documentation? It fixed my animation issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions