Skip to content

Commit

Permalink
fix: remove deprected use of defaultProps (#4385)
Browse files Browse the repository at this point in the history
  • Loading branch information
timbocole authored Jul 27, 2024
1 parent b1fd739 commit 4b2052a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/TextInput/Adornment/TextInputIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const IconAdornment: React.FunctionComponent<
const TextInputIcon = ({
icon,
onPress,
forceTextInputFocus,
forceTextInputFocus = true,
color: customColor,
theme: themeOverrides,
rippleColor,
Expand Down Expand Up @@ -176,10 +176,6 @@ const TextInputIcon = ({
};
TextInputIcon.displayName = 'TextInput.Icon';

TextInputIcon.defaultProps = {
forceTextInputFocus: true,
};

const styles = StyleSheet.create({
container: {
position: 'absolute',
Expand Down

0 comments on commit 4b2052a

Please sign in to comment.