Page MenuHomePhabricator

D9150.id31000.diff
No OneTemporary

D9150.id31000.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 bottomSheetHandle = React.useMemo(
+ () => (
+ <>
+ <View style={styles.knobHandleContainer}>
+ <View style={styles.knobHandle} />
+ </View>
+ <View style={styles.gap} />
+ </>
+ ),
+ [styles.gap, styles.knobHandle, styles.knobHandleContainer],
);
+
+ return bottomSheetHandle;
}
const unboundStyles = {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 1:58 AM (18 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2598853
Default Alt Text
D9150.id31000.diff (878 B)

Event Timeline