Skip to content

Invariant Violation: Native animated module is not availableΒ #17

@gamegee

Description

@gamegee

Hello,

First of all, thanks for your contribution to the vite ecosystem πŸ™

I got this error while running a test on a component:

Invariant Violation: Native animated module is not available                                              β•‘

Here is a minimal reproduceable example:

describe('my suite', () => {
  it('should render correctly with minimal props', () => {
    const { getByText } = render(<TouchableOpacity />); // TouchableOpacity is the problem
  });
});

The issue come from the TouchableOpacity component that seems to needs some polyfills.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions