react native app crashing on start 1

react native app crashing on start

For those who still have a similar issue,
the key is to replace every use of with
(and make sure that you include a : 
import { ViewPropTypes } from 'react-native';
at the top of the file).

Here is what the above code is Doing:
1. We import the ViewPropTypes from react-native.
2. We create a new object called propTypes and assign it to ViewPropTypes.
3. We add a new property to propTypes called style.
4. We assign the value of to the style property.
5. We export the propTypes object.

Similar Posts