mirror of
https://github.com/status-im/react-native-linear-gradient.git
synced 2025-01-09 23:35:52 +00:00
24 lines
629 B
JavaScript
24 lines
629 B
JavaScript
/**
|
|
* @providesModule LinearGradient
|
|
* @flow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
|
|
var createReactNativeComponentClass = require('createReactNativeComponentClass');
|
|
var merge = require('merge');
|
|
var deepDiffer = require('deepDiffer');
|
|
|
|
var LinearGradient = createReactNativeComponentClass({
|
|
validAttributes: merge(ReactNativeViewAttributes.UIView, {
|
|
colors: {diff: deepDiffer},
|
|
start: {diff: deepDiffer},
|
|
end: {diff: deepDiffer},
|
|
locations: {diff: deepDiffer},
|
|
}),
|
|
uiViewClassName: 'BVLinearGradient',
|
|
});
|
|
|
|
module.exports = LinearGradient;
|