You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No overload matches this call.
Overload 1 of 2, '(props: ITipProvider | Readonly<ITipProvider>): TipProvider', gave the following error.
Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes<TipProvider> & Readonly<ITipProvider>'.
Overload 2 of 2, '(props: ITipProvider, context: any): TipProvider', gave the following error.
Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes<TipProvider> & Readonly<ITipProvider>'.
My Code:
import React from "react";
import { PersistGate } from "redux-persist/integration/react";
import { Provider } from "react-redux";
import TipProvider from "react-native-tip";
import { store, persistor } from "./src/redux";
type Props = {
children: JSX.Element;
};
const Providers = ({ children }: Props) => (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<TipProvider>
{children}
</TipProvider>
</PersistGate>
</Provider>
);
export default Providers;
The text was updated successfully, but these errors were encountered:
SMKH-PRO
changed the title
Typescript No overload matches this call. Overload 1 of 2, '(props: ITipProvider | Readonly<ITipProvider>): TipProvider', gave the following error. Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes<TipProvider> & Readonly<ITipProvider>'. Overload 2 of 2, '(props: ITipProvider, context: any): TipProvider', gave the following error. Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes<TipProvider> & Readonly<ITipProvider>'.
Typescript No overload matches this call.
Aug 25, 2023
Error:
My Code:
The text was updated successfully, but these errors were encountered: