Hi there,
I'm already installed this lib on my project with TS and I'm facing this error below:
Type '{ children: Element[]; position: "BOTTOM"; }' is not assignable to type 'IntrinsicAttributes & Omit<ToastContextType, "toast">'.
Property 'children' does not exist on type 'IntrinsicAttributes & Omit<ToastContextType, "toast">'.
Follow my code:
import React from 'react';
import { Provider } from 'react-redux';
import { StatusBar } from 'react-native';
import { ToastProvider } from 'react-native-styled-toast';
import { Routes } from './routes/routes';
import store from './redux';
const App = () => (
<Provider store={store}>
<ToastProvider position="BOTTOM">
<StatusBar backgroundColor="#000" />
<Routes />
</ToastProvider>
</Provider>
);
export default App;
Hi there, I'm already installed this lib on my project with TS and I'm facing this error below:
Type '{ children: Element[]; position: "BOTTOM"; }' is not assignable to type 'IntrinsicAttributes & Omit<ToastContextType, "toast">'. Property 'children' does not exist on type 'IntrinsicAttributes & Omit<ToastContextType, "toast">'.
Follow my code:
Thanks