Skip to content

Commit

Permalink
Merge pull request #100 from wrappid/WRPD-bugfix-99
Browse files Browse the repository at this point in the history
fix(global): 🐛 fixed theme loading
  • Loading branch information
techoneel authored Nov 16, 2024
2 parents 927f190 + 6b9d6f2 commit 6dd6f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/theme/NativeThemeProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function NativeThemeProvider(props) {
secondary : props?.theme?.palette?.secondary?.main,
secondaryContainer : props?.theme?.palette?.secondary?.light,
surface : props?.theme?.palette?.background?.default,
surfaceVariant : "transparent?",
surfaceVariant : "transparent",
},
roundness: props?.theme?.shape?.borderRadius
? props.theme.shape.borderRadius / 4
Expand All @@ -43,7 +43,7 @@ export default function NativeThemeProvider(props) {

React.useEffect(() => {
setPaperThemeObject();
}, []);
}, [props?.theme]);

return <Provider theme={paperTheme}>{props.children}</Provider>;
}

0 comments on commit 6dd6f6d

Please sign in to comment.