Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3180209
D9150.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.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 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
Details
Attached
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)
Attached To
Mode
D9150: [native] memoize BottomSheetHandle
Attached
Detach File
Event Timeline
Log In to Comment