Description
Ask your Question
beforeEach(() => {
// Render the component with default props for each test
component = render(<LActButton {...defaultProps} />)
})
I am using the testing library version : ^12.1.2
and the react native : o.71.8
And i get the following message for rendering my component
Trying to detect host component names triggered the following error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. There seems to be an issue with your configuration that prevents React Native Testing Library from working correctly. Please check if you are using compatible versions of React Native and React Native Testing Library.