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