diff --git a/App.tsx b/App.tsx index 80edead..e81d8b5 100644 --- a/App.tsx +++ b/App.tsx @@ -16,7 +16,8 @@ const Stack = createNativeStackNavigator(); const App = () => { return ( - RNBootSplash.hide({fade: true, duration: 500})}> + RNBootSplash.hide({fade: true, duration: 500})}> = args => { const props = {...DEFAULTS, ...args}; - + let active_modifier = props.active ? 1 : 0.25; let visible_modifier = props.visible ? 1 : 0; const overrides: ViewStyle = { opacity: props.brightness * active_modifier * visible_modifier, - borderRadius: props.roundness * FULL_ROUNDNESS_RADIUS - } + borderRadius: props.roundness * FULL_ROUNDNESS_RADIUS, + }; return ( diff --git a/src/pages/BinaryClockScreen.tsx b/src/pages/BinaryClockScreen.tsx index 45af4f7..d309622 100644 --- a/src/pages/BinaryClockScreen.tsx +++ b/src/pages/BinaryClockScreen.tsx @@ -6,7 +6,11 @@ import {Pressable, StatusBar, View, useWindowDimensions} from 'react-native'; import React, {useEffect} from 'react'; -import {useBrightness, useRoundness, useShowHints} from '../utils/BinaryClockSettings'; +import { + useBrightness, + useRoundness, + useShowHints, +} from '../utils/BinaryClockSettings'; import BinaryClock from '../components/BinaryClock'; import KeepAwake from 'react-native-keep-awake';