Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

deprecated-react-native-prop-types

facebook6.5mMIT5.0.0

Deprecated prop-types from React Native.

readme

deprecated-react-native-prop-types

This package contains deprecated prop-types from React Native.

Image.propTypes

Before

import {Image} from 'react-native';

doSomething(Image.propTypes);

After

import {ImagePropTypes} from 'deprecated-react-native-prop-types';

doSomething(ImagePropTypes);

Text.propTypes

Before

import {Text} from 'react-native';

doSomething(Text.propTypes);

After

import {TextPropTypes} from 'deprecated-react-native-prop-types';

doSomething(TextPropTypes);

TextInput.propTypes

Before

import {TextInput} from 'react-native';

doSomething(TextInput.propTypes);

After

import {TextInputPropTypes} from 'deprecated-react-native-prop-types';

doSomething(TextInputPropTypes);

ColorPropType

Before

import {ColorPropType} from 'react-native';

doSomething(ColorPropType);

After

import {ColorPropType} from 'deprecated-react-native-prop-types';

doSomething(ColorPropType);

EdgeInsetsPropType

Before

import {EdgeInsetsPropType} from 'react-native';

doSomething(EdgeInsetsPropType);

After

import {EdgeInsetsPropType} from 'deprecated-react-native-prop-types';

doSomething(EdgeInsetsPropType);

PointPropType

Before

import {PointPropType} from 'react-native';

doSomething(PointPropType);

After

import {PointPropType} from 'deprecated-react-native-prop-types';

doSomething(PointPropType);

ViewPropTypes

Before

import {ViewPropTypes} from 'react-native';

doSomething(ViewPropTypes);

After

import {ViewPropTypes} from 'deprecated-react-native-prop-types';

doSomething(ViewPropTypes);

changelog

5.0.0 / 2023-10-12

  • (Breaking) bump dependency on @react-native/normalize-colors to ^0.73.0 - this requires Node >= 18
  • Explicitly require Node >= 18 via engines

4.2.3 / 2023-10-12

  • Use semver ranges for prop-types and invariant deps.

4.2.2 / 2023-10-12

  • Restricted @react-native/normalize-colors dependency to <0.73.0 to avoid a transitive Node >= 18 requirement.

4.2.1 / 2023-07-28

  • Added @flow so all modules can be imported without suppressing [untyped-import]

4.2.0 / 2023-07-18

4.1.0 / 2023-04-19

4.0.0 / 2022-12-13

  • Compatible with React Native 0.72
  • Updated dependency from @react-native/normalize-color to @react-native/normalize-colors due to upstream renaming of such dependency, needed for compatibility with 0.72
  • This major bump is needed as `react-native@0.71will still use@react-native/normalize-color` and we want users of 0.71 to continue depending on 3.0.1.

3.0.1 / 2022-12-02

  • Compatible with React Native 0.71
  • Improvements to ImagePropTypes
    • Merged Android and default definitions.
    • Included all of ViewPropTypes.
    • Improved types for defaultSource and source.
    • Added alt, crossOrigin, height, referrerPolicy, src, srcSet, tintColor, and width.
    • Added objectFit to style.
  • Improvements to LayoutPropTypes
    • Changed aspectRatio so it can be a string ratio.
    • Added {margin,padding}{Block,Inline}{,End,Start}.
    • Added columnGap, gap, and rowGap.
  • Improvements to TextInputPropTypes
    • Renamed autoCompleteType to autoComplete.
    • Added many new valid values for autoComplete.
    • Added cursorColor, enterKeyHint, inputMode, lineBreakStrategyIOS, readOnly, rows, and submitBehavior.
  • Improvements to ViewAccessibility
    • Added many new valid values for accessibilityRole.
    • Changed accessibilityActions to consist of objects, not strings.
  • Improvements to TextPropTypes
    • Added accessibilityActions, accessibilityHint, accessibilityLabel, accessibilityLanguage, accessibilityRole, accessibilityState, aria-busy, aria-checked, aria-disabled, aria-expanded, aria-label, aria-labelledby, aria-selected, dynamicTypeRamp, id, lineBreakStrategyIOS, onAccessibilityAction, and role.
    • Added onPressIn, onPressOut, onResponderGrant, onResponderMove, onResponderRelease, onResponderTerminate, onResponderTerminationRequest, onStartShouldSetResponder, onMoveShouldSetResponder, and onTextLayout.
    • Added numeric and named values for fontWeight in style.
    • Added string and stylistic values for fontVariant in style.
    • Added userSelect and verticalAlign in style.
  • Improvements to TransformPropTypes
    • Removed deprecated props: decomposedMatrix, rotation, scaleX, scaleY, transformMatrix, translateX, translateY
  • Improvements to ViewPropTypes
    • Changed hitSlop to accept a number.
    • Added accessibilityLabelledBy, accessibilityLanguage, aria-busy, aria-checked, aria-disabled, aria-expanded, aria-hidden, aria-label, aria-labelledby, aria-live, aria-modal, aria-selected, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, focusable, id, nativeBackgroundAndroid, nativeForegroundAndroid, onAccessibilityEscape, onClick, role, and tabIndex.
    • Added mouse, pointer, focus, and touch event props.
    • Added borderCurve and pointerEvents to style.