This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useTheme } from '@stores/theme/ThemeProvider'; | |
import React, { FC, useState } from 'react'; | |
import { | |
NativeScrollEvent, | |
NativeSyntheticEvent, | |
ScrollView, | |
ScrollViewProps, | |
StyleProp, | |
StyleSheet, | |
View, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const useGetStatusBarHeight = (): number => { | |
const [statusBarHeight, setStatusBarHeight] = useState(0); | |
const isMounted = useRef(true); | |
useEffect(() => { | |
if (Platform.OS === 'android') { | |
isMounted.current && | |
setStatusBarHeight( | |
NativeModules.StatusBarManager.HEIGHT, | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <React/RCTBridgeModule.h> | |
@interface RCTAudioModule : NSObject <RCTBridgeModule> | |
@end |