mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-08 12:32:58 +00:00
committed by
Nicolas Gallagher
parent
4a9bea27a8
commit
32a4bf8e51
@@ -67,7 +67,7 @@ const absoluteFill = create({ x: { ...absoluteFillObject } }).x;
|
|||||||
/**
|
/**
|
||||||
* create
|
* create
|
||||||
*/
|
*/
|
||||||
function create(styles: Object): {| [key: string]: { [key: string]: any } |} {
|
function create<T: Object>(styles: T): $ReadOnly<T> {
|
||||||
Object.keys(styles).forEach((key) => {
|
Object.keys(styles).forEach((key) => {
|
||||||
const styleObj = styles[key];
|
const styleObj = styles[key];
|
||||||
// Only compile at runtime if the style is not already compiled
|
// Only compile at runtime if the style is not already compiled
|
||||||
|
|||||||
Reference in New Issue
Block a user