Page MenuHomePhabricator

D9150.diff
No OneTemporary

D9150.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 9, 4:22 AM (20 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2448589
Default Alt Text
D9150.diff (878 B)

Event Timeline