react-native-switch-toggle
react-native-switch-toggle copied to clipboard
Remove usage of default props
DefaultProps are deprecated and triggers a warning in newer RN / Expo apps.
This PR replaces defaultProps by initializing the props when it's undefined with regular JS.
cc @yujonglee