2015-02-20 04:10:52 +00:00
|
|
|
/**
|
2015-03-23 20:35:08 +00:00
|
|
|
* 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.
|
2015-02-20 04:10:52 +00:00
|
|
|
*
|
2015-05-08 16:45:43 +00:00
|
|
|
* @providesModule ReactNativeStyleAttributes
|
2015-03-25 01:33:05 +00:00
|
|
|
* @flow
|
2015-02-20 04:10:52 +00:00
|
|
|
*/
|
|
|
|
|
2015-04-17 01:17:19 +00:00
|
|
|
'use strict';
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2015-04-17 01:17:19 +00:00
|
|
|
var ImageStylePropTypes = require('ImageStylePropTypes');
|
2015-02-20 04:10:52 +00:00
|
|
|
var TextStylePropTypes = require('TextStylePropTypes');
|
|
|
|
var ViewStylePropTypes = require('ViewStylePropTypes');
|
|
|
|
|
|
|
|
var keyMirror = require('keyMirror');
|
|
|
|
var matricesDiffer = require('matricesDiffer');
|
2015-04-17 01:17:19 +00:00
|
|
|
var sizesDiffer = require('sizesDiffer');
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2015-05-08 16:45:43 +00:00
|
|
|
var ReactNativeStyleAttributes = {
|
2015-04-17 01:17:19 +00:00
|
|
|
...keyMirror(ViewStylePropTypes),
|
|
|
|
...keyMirror(TextStylePropTypes),
|
|
|
|
...keyMirror(ImageStylePropTypes),
|
|
|
|
};
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2015-05-08 16:45:43 +00:00
|
|
|
ReactNativeStyleAttributes.transformMatrix = { diff: matricesDiffer };
|
|
|
|
ReactNativeStyleAttributes.shadowOffset = { diff: sizesDiffer };
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2015-05-28 16:22:30 +00:00
|
|
|
// Do not rely on this attribute.
|
|
|
|
ReactNativeStyleAttributes.decomposedMatrix = 'decomposedMatrix';
|
|
|
|
|
2015-05-08 16:45:43 +00:00
|
|
|
module.exports = ReactNativeStyleAttributes;
|