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:
@ -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
|
||||
|
Reference in New Issue
Block a user