oblador / react-native-lightbox

Images etc in Full Screen Lightbox Popovers for React Native
MIT License
2.82k stars 502 forks source link

Use Component.propTypes instead of static propTypes #116

Open BaderSerhan opened 5 years ago

BaderSerhan commented 5 years ago

A simple enhancement, as the title suggests. Using Component.propTypes will make it easier for developers who use IDEs to view the list of props that the component has, and see suggestions for prop names as he types. Also, in case any prop was made isRequired, a warning will be shown to the developer to insert required attribute... by the inspector.