1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Scroll to toot working

This commit is contained in:
Zhiyuan Zheng
2020-12-12 12:49:29 +01:00
parent 0fa9f87f66
commit 81a21d1d07
13 changed files with 140 additions and 116 deletions

View File

@ -8,7 +8,7 @@ import { StyleConstants } from 'src/utils/styles/constants'
export interface Props {
onPress: () => void
text?: string
icon?: string
icon?: any
}
const HeaderLeft: React.FC<Props> = ({ onPress, text, icon }) => {
@ -38,9 +38,4 @@ const styles = StyleSheet.create({
}
})
export default React.memo(HeaderLeft, (prev, next) => {
let skipUpdate = true
skipUpdate = prev.text === next.text
skipUpdate = prev.icon === next.icon
return skipUpdate
})
export default HeaderLeft