mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Updates from Tue 8 Sep
This commit is contained in:
15
Libraries/StyleSheet/StyleSheetTypes.js
Normal file
15
Libraries/StyleSheet/StyleSheetTypes.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule StyleSheetTypes
|
||||
* @flow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
type Atom = number | bool | Object | Array<?Atom>;
|
||||
export type StyleObj = Atom | Array<?StyleObj>;
|
||||
@@ -14,8 +14,7 @@
|
||||
var StyleSheetRegistry = require('StyleSheetRegistry');
|
||||
var invariant = require('invariant');
|
||||
|
||||
type Atom = number | bool | Object | Array<?Atom>
|
||||
type StyleObj = Atom | Array<?StyleObj>
|
||||
import type { StyleObj } from 'StyleSheetTypes';
|
||||
|
||||
function getStyle(style) {
|
||||
if (typeof style === 'number') {
|
||||
|
||||
Reference in New Issue
Block a user