Skip to content

Commit

Permalink
fix: use correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexogamer committed Feb 7, 2025
1 parent d0a9a01 commit 1bd90f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/common/atoms/InputWithButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {useContext, useState} from 'react';
import {StyleSheet, TextInput, View, ViewStyle} from 'react-native';
import {StyleSheet, TextInput, type TextStyle, View, type ViewStyle} from 'react-native';

import MaterialIcon from 'react-native-vector-icons/MaterialIcons';
import MaterialCommunityIcon from 'react-native-vector-icons/MaterialCommunityIcons';
Expand Down Expand Up @@ -27,7 +27,7 @@ export function InputWithButton({
| {type: 'string'; content: string}
| {type: 'icon'; name: string; pack: 'regular' | 'community'};

extraStyles?: {container?: ViewStyle; input?: ViewStyle; button?: ViewStyle};
extraStyles?: {container?: ViewStyle; input?: TextStyle; button?: ViewStyle};
backgroundColor?: ViewStyle['backgroundColor'];
onPress: any;
skipIfSame?: boolean;
Expand Down

0 comments on commit 1bd90f8

Please sign in to comment.