diff --git a/packages/react-native-web/src/exports/StyleSheet/index.js b/packages/react-native-web/src/exports/StyleSheet/index.js index 693ebf05..24129367 100644 --- a/packages/react-native-web/src/exports/StyleSheet/index.js +++ b/packages/react-native-web/src/exports/StyleSheet/index.js @@ -67,7 +67,7 @@ const absoluteFill = create({ x: { ...absoluteFillObject } }).x; /** * create */ -function create(styles: Object): {| [key: string]: { [key: string]: any } |} { +function create(styles: T): $ReadOnly { Object.keys(styles).forEach((key) => { const styleObj = styles[key]; // Only compile at runtime if the style is not already compiled