ikualo-ui-kit-mobile 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.tsx +3 -5
- package/package.json +1 -1
- package/src/elements/pages/Provider.tsx +10 -0
- package/src/index.ts +2 -1
package/App.tsx
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { PaperProvider } from 'react-native-paper';
|
|
2
|
-
|
|
3
1
|
import { darkTheme, lightTheme } from './src/config/paper.config';
|
|
4
2
|
import { useFonts } from 'expo-font';
|
|
5
3
|
import React, { useEffect } from 'react';
|
|
6
4
|
import { Appearance } from 'react-native';
|
|
7
5
|
import useStore from './src/store';
|
|
8
|
-
import { PageTouchable } from './src';
|
|
6
|
+
import { PageTouchable, Provider } from './src';
|
|
9
7
|
import { Views } from './src/elements/views/Views';
|
|
10
8
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
11
9
|
|
|
@@ -35,11 +33,11 @@ export default function App() {
|
|
|
35
33
|
< GestureHandlerRootView >
|
|
36
34
|
|
|
37
35
|
{fontsLoaded && (
|
|
38
|
-
<
|
|
36
|
+
<Provider >
|
|
39
37
|
<PageTouchable>
|
|
40
38
|
<Views />
|
|
41
39
|
</PageTouchable>
|
|
42
|
-
</
|
|
40
|
+
</Provider>
|
|
43
41
|
)}
|
|
44
42
|
</GestureHandlerRootView>
|
|
45
43
|
);
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PaperProvider } from "react-native-paper"
|
|
2
|
+
import useStore from "../../store"
|
|
3
|
+
import { ReactNode } from "react"
|
|
4
|
+
|
|
5
|
+
export const Provider = (props: { children: ReactNode }) => {
|
|
6
|
+
return (
|
|
7
|
+
<PaperProvider theme={useStore().theme} >
|
|
8
|
+
{props.children}
|
|
9
|
+
</PaperProvider>)
|
|
10
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './elements/pages/PageBasic';
|
|
2
2
|
export * from './elements/pages/PageTouchable';
|
|
3
|
+
export * from './elements/pages/Provider';
|
|
3
4
|
|
|
4
5
|
export * from './elements/buttons/BtnContained';
|
|
5
6
|
export * from './elements/buttons/BtnOutlined';
|
|
@@ -38,4 +39,4 @@ export * from './elements/select/Select';
|
|
|
38
39
|
export * from './elements/select/SelectList';
|
|
39
40
|
|
|
40
41
|
export * from './elements/accordion/Accordion';
|
|
41
|
-
export * from './elements/navbar/Navbar';
|
|
42
|
+
export * from './elements/navbar/Navbar';
|