mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 12:45:37 +08:00
Second Update from Tue 24 Mar
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule StyleSheet
|
||||
* @flow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
@@ -58,7 +59,7 @@ var StyleSheetValidation = require('StyleSheetValidation');
|
||||
* subsequent uses are going to refer an id (not implemented yet).
|
||||
*/
|
||||
class StyleSheet {
|
||||
static create(obj) {
|
||||
static create(obj: {[key: string]: any}): {[key: string]: number} {
|
||||
var result = {};
|
||||
for (var key in obj) {
|
||||
StyleSheetValidation.validateStyle(key, obj);
|
||||
|
||||
Reference in New Issue
Block a user