Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3371086
D10005.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10005.diff
View Options
diff --git a/native/components/full-screen-view-modal.react.js b/native/components/full-screen-view-modal.react.js
--- a/native/components/full-screen-view-modal.react.js
+++ b/native/components/full-screen-view-modal.react.js
@@ -40,6 +40,7 @@
derivedDimensionsInfoSelector,
} from '../selectors/dimensions-selectors.js';
import type { NativeMethods } from '../types/react-native.js';
+import type { AnimatedStyleObj } from '../types/styles.js';
import type { UserProfileBottomSheetNavigationProp } from '../user-profile/user-profile-bottom-sheet-navigator.react.js';
import {
clamp,
@@ -958,7 +959,7 @@
return { width, height: safeAreaHeight };
}
- get contentViewContainerStyle() {
+ get contentViewContainerStyle(): AnimatedStyleObj {
const { height, width } = this.props.contentDimensions;
const { height: frameHeight, width: frameWidth } = this.frame;
const top = (frameHeight - height) / 2 + this.props.dimensions.topInset;
diff --git a/native/types/styles.js b/native/types/styles.js
--- a/native/types/styles.js
+++ b/native/types/styles.js
@@ -18,10 +18,17 @@
export type AnimatedStyleObj = {
+opacity?: ?number | Animated.Node,
+ +height?: ?number | Animated.Node,
+width?: ?number | Animated.Node,
+ +marginTop?: ?number | Animated.Node,
+marginRight?: ?number | Animated.Node,
+ +marginLeft?: ?number | Animated.Node,
+ +backgroundColor?: ?string | Animated.Node,
+ +bottom?: ?number | Animated.Node,
+transform?: $ReadOnlyArray<{
+scale?: ?number | Animated.Node,
+ +translateX?: ?number | Animated.Node,
+ +translateY?: ?number | Animated.Node,
...
}>,
...
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 4:29 AM (22 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2587963
Default Alt Text
D10005.diff (1 KB)
Attached To
Mode
D10005: [Flow202][native][skip-ci] [21/x] Update AnimatedStyleObj type
Attached
Detach File
Event Timeline
Log In to Comment