Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3388574
D10031.id33676.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
D10031.id33676.diff
View Options
diff --git a/native/components/gesture-touchable-opacity.react.js b/native/components/gesture-touchable-opacity.react.js
--- a/native/components/gesture-touchable-opacity.react.js
+++ b/native/components/gesture-touchable-opacity.react.js
@@ -200,7 +200,7 @@
]);
const fillStyle = React.useMemo(() => {
- const result = StyleSheet.flatten(props.style);
+ const result = StyleSheet.flatten<ViewStyle>(props.style);
if (!result) {
return undefined;
}
diff --git a/native/markdown/markdown.react.js b/native/markdown/markdown.react.js
--- a/native/markdown/markdown.react.js
+++ b/native/markdown/markdown.react.js
@@ -3,7 +3,6 @@
import invariant from 'invariant';
import * as React from 'react';
import { View, Text, StyleSheet } from 'react-native';
-import type { TextStyle as FlattenedTextStyle } from 'react-native/Libraries/StyleSheet/StyleSheet.js';
import * as SimpleMarkdown from 'simple-markdown';
import { onlyEmojiRegex } from 'lib/shared/emojis.js';
@@ -53,7 +52,7 @@
) {
return style;
}
- const flattened: FlattenedTextStyle = (StyleSheet.flatten(style): any);
+ const flattened = StyleSheet.flatten<TextStyle>(style);
invariant(
flattened && typeof flattened === 'object',
`Markdown component should have style`,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 2:58 PM (20 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2601373
Default Alt Text
D10031.id33676.diff (1 KB)
Attached To
Mode
D10031: [Flow202][native][skip-ci] [47/x] Parameterize StyleSheet.flatten invocations
Attached
Detach File
Event Timeline
Log In to Comment