Bluesky app fork with some witchin' additions 💫

remove broken keyboard offset code (#3842)

authored by samuel.fm and committed by

GitHub 67b0cdf6 997e621c

+4 -16
+4 -16
src/screens/Messages/Conversation/MessagesList.tsx
··· 1 - import React, {useCallback, useEffect, useRef} from 'react' 1 + import React, {useCallback, useRef} from 'react' 2 2 import { 3 - Dimensions, 4 3 FlatList, 5 4 NativeScrollEvent, 6 5 NativeSyntheticEvent, ··· 184 183 185 184 function useKeyboardVerticalOffset() { 186 185 const {top: topInset} = useSafeAreaInsets() 187 - const [screenWindowDifference, setScreenWindowDifference] = React.useState( 188 - () => Dimensions.get('screen').height - Dimensions.get('window').height, 189 - ) 190 - 191 - useEffect(() => { 192 - const subscription = Dimensions.addEventListener( 193 - 'change', 194 - ({screen, window}) => { 195 - setScreenWindowDifference(screen.height - window.height) 196 - }, 197 - ) 198 - return () => subscription.remove() 199 - }, []) 200 186 201 187 return Platform.select({ 202 188 ios: topInset, 203 - android: screenWindowDifference, 189 + // I thought this might be the navigation bar height, but not sure 190 + // 25 is just trial and error 191 + android: 25, 204 192 default: 0, 205 193 }) 206 194 }