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

@ -12,12 +12,12 @@ type PropsBase = {
export interface PropsText extends PropsBase {
text: string
icon?: string
icon?: any
}
export interface PropsIcon extends PropsBase {
text?: string
icon: string
icon: any
}
const HeaderRight: React.FC<PropsText | PropsIcon> = ({
@ -60,10 +60,4 @@ const styles = StyleSheet.create({
}
})
export default React.memo(HeaderRight, (prev, next) => {
let skipUpdate = true
skipUpdate = prev.disabled === next.disabled
skipUpdate = prev.text === next.text
skipUpdate = prev.icon === next.icon
return skipUpdate
})
export default HeaderRight