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