Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33327935
D10031.1768871749.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D10031.1768871749.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
Tue, Jan 20, 1:15 AM (16 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5958917
Default Alt Text
D10031.1768871749.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