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
This commit is contained in:
Родитель
44a289cf26
Коммит
2b883abc06
|
@ -23,9 +23,10 @@ const ImageViewManager = NativeModules.ImageViewManager;
|
|||
|
||||
const RCTImageView = requireNativeComponent('RCTImageView');
|
||||
|
||||
import type {ImageStyleProp} from 'StyleSheet';
|
||||
import type {ImageProps as ImagePropsType} from 'ImageProps';
|
||||
|
||||
import type {ImageStyleProp} from 'StyleSheet';
|
||||
|
||||
function getSize(
|
||||
uri: string,
|
||||
success: (width: number, height: number) => void,
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
const StyleSheet = require('StyleSheet');
|
||||
|
||||
import type {ImageStyleProp, TextStyleProp} from 'StyleSheet';
|
||||
|
||||
const imageStyle = {tintColor: 'rgb(0, 0, 0)'};
|
||||
const textStyle = {color: 'rgb(0, 0, 0)'};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче