Skip to content

Commit 2b883ab

Browse files
rickhanloniifacebook-github-bot
authored andcommitted
Codemod ImageStyleProp
Summary: Created by running: ``` $ js1 codeshift rn-stylesheet-exports --component="Image" --prop="ImageStyleProp" ./ $ hg status -n --change . | xargs js1 prettier ``` drop-conflicts Reviewed By: TheSavior Differential Revision: D13565530 fbshipit-source-id: cc1ae4274db315bce607c2b62db786f87a2cfc21
1 parent 44a289c commit 2b883ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Libraries/Image/Image.ios.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ const ImageViewManager = NativeModules.ImageViewManager;
2323

2424
const RCTImageView = requireNativeComponent('RCTImageView');
2525

26-
import type {ImageStyleProp} from 'StyleSheet';
2726
import type {ImageProps as ImagePropsType} from 'ImageProps';
2827

28+
import type {ImageStyleProp} from 'StyleSheet';
29+
2930
function getSize(
3031
uri: string,
3132
success: (width: number, height: number) => void,

Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
const StyleSheet = require('StyleSheet');
1414

1515
import type {ImageStyleProp, TextStyleProp} from 'StyleSheet';
16-
1716
const imageStyle = {tintColor: 'rgb(0, 0, 0)'};
1817
const textStyle = {color: 'rgb(0, 0, 0)'};
1918

0 commit comments

Comments
 (0)