import PropTypes from 'prop-types';
* Replacement for react-native's `ViewPropTypes.style`.
*
* `ViewPropTypes` is not exported by @react-native-oh/react-native-harmony's
* index.js (RNOH 0.72.101), so importing it from 'react-native' yields
* undefined on OpenHarmony and `ViewPropTypes.style` throws while the class
* body is evaluated. On RN 0.72 core it still resolves, but only through a
* deprecated getter that logs a console.error on every import.
*
* Accepts what a flattened/registered RN style can be: a StyleSheet id
* (number), an inline style object, a (possibly nested) array of those, or
* false/null/undefined from conditional style expressions.
*/
const stylePropType = PropTypes.oneOfType([
PropTypes.number,
PropTypes.object,
PropTypes.array,
]);
export { stylePropType };