mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-27 10:32:58 +02:00
24 lines
572 B
TypeScript
24 lines
572 B
TypeScript
import * as React from 'react';
|
|
import { PaperProvider } from 'react-native-paper';
|
|
import { MenuProvider } from 'react-native-popup-menu';
|
|
import { Provider } from 'react-redux';
|
|
import { Store } from 'redux';
|
|
import { AppState } from '../../utils/types';
|
|
|
|
interface Props {
|
|
store: Store<AppState>;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
const TestProviderStack: React.FC<Props> = props => {
|
|
return <Provider store={props.store}>
|
|
<MenuProvider>
|
|
<PaperProvider>
|
|
{props.children}
|
|
</PaperProvider>
|
|
</MenuProvider>
|
|
</Provider>;
|
|
};
|
|
|
|
export default TestProviderStack;
|