Skip to content

Commit

Permalink
Removed unused core from Image.android.js
Browse files Browse the repository at this point in the history
Summary: Trivial.

Reviewed By: sahrens

Differential Revision: D6721449

fbshipit-source-id: 6ae001d4161167e0e86b1dc134c1621b3974b489
  • Loading branch information
shergin authored and facebook-github-bot committed Jan 15, 2018
1 parent 831a1bb commit ce3146a
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Libraries/Image/Image.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ var NativeModules = require('NativeModules');
var React = require('React');
var PropTypes = require('prop-types');
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
var Set = require('Set');
var StyleSheet = require('StyleSheet');
var StyleSheetPropType = require('StyleSheetPropType');
var ViewPropTypes = require('ViewPropTypes');
var ViewStylePropTypes = require('ViewStylePropTypes');

var createReactClass = require('create-react-class');
var flattenStyle = require('flattenStyle');
Expand Down Expand Up @@ -63,21 +61,6 @@ function generateRequestId() {
* More example code in ImageExample.js
*/

var ImageViewAttributes = merge(ReactNativeViewAttributes.UIView, {
src: true,
loadingIndicatorSrc: true,
resizeMethod: true,
resizeMode: true,
progressiveRenderingEnabled: true,
fadeDuration: true,
shouldNotifyLoadEvents: true,
});

var ViewStyleKeys = new Set(Object.keys(ViewStylePropTypes));
var ImageSpecificStyleKeys = new Set(
Object.keys(ImageStylePropTypes).filter(x => !ViewStyleKeys.has(x)),
);

var Image = createReactClass({
displayName: 'Image',
propTypes: {
Expand Down

0 comments on commit ce3146a

Please sign in to comment.