Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3182215
D9150.id30998.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
878 B
Referenced Files
None
Subscribers
None
D9150.id30998.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9150: [native] memoize BottomSheetHandle
Attached
Detach File
Event Timeline
Log In to Comment