Skip to content

Commit

Permalink
Fixed style prop type on Input component
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonortiz committed Aug 16, 2023
1 parent 6cc212c commit 1f3330c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Input/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {LegacyRef, useEffect, useState} from 'react';
import {TextInput, StyleSheet, View, Text, KeyboardType, ViewStyle} from 'react-native';
import {TextInput, StyleSheet, View, Text, KeyboardType, StyleProp, TextStyle} from 'react-native';
import {
Status,
getBorderColor,
Expand Down Expand Up @@ -37,7 +37,7 @@ interface InputProps {
onSubmitEditing?: () => void;
onFocus?: () => void;
onBlur?: () => void;
style?: ViewStyle;
style?: StyleProp<TextStyle>;
}

const Input = React.forwardRef<TextInput, InputProps>(
Expand Down

0 comments on commit 1f3330c

Please sign in to comment.