mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
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:
committed by
Facebook Github Bot
parent
44a289cf26
commit
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)'};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user