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

Preparing for upgrading expo SDK

This commit is contained in:
Zhiyuan Zheng
2020-12-10 19:19:56 +01:00
parent 2272ea3841
commit fb123b6a26
16 changed files with 507 additions and 325 deletions

View File

@ -38,4 +38,9 @@ const styles = StyleSheet.create({
}
})
export default HeaderLeft
export default React.memo(HeaderLeft, (prev, next) => {
let skipUpdate = true
skipUpdate = prev.text === next.text
skipUpdate = prev.icon === next.icon
return skipUpdate
})