@boneframework/native-components
Version:
Expo React Native Components for Bone Framework
21 lines (17 loc) • 547 B
text/typescript
import { DarkTheme, DefaultTheme } from "@react-navigation/native";
import useStyle from "@boneframework/native-components/hooks/useStyle";
const useNavigationTheme = () => {
const style = useStyle();
const theme = style.dark ? DarkTheme : DefaultTheme
return {
...theme,
colors: {
...theme.colors,
primary: style.text.color,
background: style.backgroundColor,
card: style.backgroundColor
},
dark: style.dark
}
};
export default useNavigationTheme