Skip to content

Commit 83ccbc4

Browse files
authored
Updated ImageStylesPropTypes to DeprecatedImageStylesPropTypes
1 parent fc0eaf6 commit 83ccbc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HTMLUtils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import TextStylesPropTypes from 'react-native/Libraries/Text/TextStylePropTypes';
22
import DeprecatedViewStylePropTypes from 'react-native/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes';
3-
import ImageStylesPropTypes from 'react-native/Libraries/Image/ImageStylePropTypes';
3+
import DeprecatedImageStylesPropTypes from 'react-native/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes';
44

55
// Filter prop-types that are only applicable to <Text> and not <View>
66
export let TextOnlyPropTypes = {};
@@ -59,8 +59,8 @@ const RNTextStylePropTypes = Object.keys(TextStylesPropTypes)
5959
.reduce((acc, k) => { acc[k] = TextStylesPropTypes[k]; return acc; }, {});
6060
const RNViewStylePropTypes = Object.keys(DeprecatedViewStylePropTypes)
6161
.reduce((acc, k) => { acc[k] = ViewStylesPropTypes[k]; return acc; }, {});
62-
const RNImageStylePropTypes = Object.keys(ImageStylesPropTypes)
63-
.reduce((acc, k) => { acc[k] = ImageStylesPropTypes[k]; return acc; }, {});
62+
const RNImageStylePropTypes = Object.keys(DeprecatedImageStylesPropTypes)
63+
.reduce((acc, k) => { acc[k] = DeprecatedImageStylesPropTypes[k]; return acc; }, {});
6464

6565
export const STYLESETS = Object.freeze({ VIEW: 'view', TEXT: 'text', IMAGE: 'image' });
6666

0 commit comments

Comments
 (0)