xotahal / react-native-material-ui

Highly customizable material design components for React Native
MIT License
3.78k stars 609 forks source link

on upgrading the RN to 0.70.6 of version 'ViewPropTypes' haven't use style, Text.propTypes.style ..properties , need update #518

Closed 98rahul closed 1 year ago

98rahul commented 1 year ago

could you update the package as on up-grading the RN-app bunch of error thrown as listed down below

  1. ERROR Error: Requiring module "node_modules\react-native-material-ui\index.js", which threw an exception: TypeError: Cannot read property 'style' of undefined, js engine: hermes
  2. ERROR TypeError: Cannot read property 'Toolbar' of undefined
  3. ERROR TypeError: Cannot read property 'style' of undefined, js engine: hermes

"react": "18.1.0", "react-native": "0.70.5",

and the error related the file of src/utils

import { View, BackHandler, ViewPropTypes as RNViewPropTypes, BackAndroid as DeprecatedBackAndroid, } from 'react-native';

const ViewPropTypes = RNViewPropTypes || View.propTypes; // eslint-disable-line const BackAndroid = BackHandler || DeprecatedBackAndroid;

export { ViewPropTypes, BackAndroid }; and error due to import of ViewPropTypes from 'react-native'.

98rahul commented 1 year ago

resolved....