Skip to content
Snippets Groups Projects
Commit acc7ce13 authored by Sofiya Tepikin's avatar Sofiya Tepikin
Browse files

Adds prop types to the project & and uses them in SettingsButton component

parent e16fc392
No related branches found
No related tags found
No related merge requests found
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
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment