Adds prop types to the project & and uses them in SettingsButton component
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import { TouchableOpacity } from 'react-native'
|
||||
import AppText from '../../app-text'
|
||||
@@ -20,4 +21,9 @@ const SettingsButton = ({ children, ...props }) => {
|
||||
)
|
||||
}
|
||||
|
||||
SettingsButton.propTypes = {
|
||||
onPress: PropTypes.func.isRequired,
|
||||
disabled: PropTypes.bool
|
||||
}
|
||||
|
||||
export default SettingsButton
|
||||
Reference in New Issue
Block a user