Page MenuHomePhabricator

D9150.id30998.diff
No OneTemporary

D9150.id30998.diff

diff --git a/native/bottom-sheets/bottom-sheet-handle.react.js b/native/bottom-sheets/bottom-sheet-handle.react.js
--- a/native/bottom-sheets/bottom-sheet-handle.react.js
+++ b/native/bottom-sheets/bottom-sheet-handle.react.js
@@ -8,14 +8,19 @@
function BottomSheetHandle(): React.Node {
const styles = useStyles(unboundStyles);
- return (
- <>
- <View style={styles.knobHandleContainer}>
- <View style={styles.knobHandle} />
- </View>
- <View style={styles.gap} />
- </>
+ const bottomSheetHanlde = React.useMemo(
+ () => (
+ <>
+ <View style={styles.knobHandleContainer}>
+ <View style={styles.knobHandle} />
+ </View>
+ <View style={styles.gap} />
+ </>
+ ),
+ [styles.gap, styles.knobHandle, styles.knobHandleContainer],
);
+
+ return bottomSheetHanlde;
}
const unboundStyles = {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 9, 7:40 AM (20 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2450178
Default Alt Text
D9150.id30998.diff (878 B)

Event Timeline