Skip to content

Commit

Permalink
feat: export props (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhyassin authored Oct 13, 2023
1 parent cc69a16 commit 591c051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import PropTypes from 'prop-types';
import { FlatList, Platform, StyleSheet, Text, TextInput, View } from 'react-native';
import { ViewPropTypes } from 'deprecated-react-native-prop-types';

type Props<T> = TextInputProps & {
export type AutocompleteInputProps<T> = TextInputProps & {
containerStyle?: StyleProp<ViewStyle>;
hideResults?: boolean;
inputContainerStyle?: StyleProp<ViewStyle>;
Expand All @@ -35,7 +35,7 @@ function DefaultTextInput(props: TextInputProps): React.ReactElement {
}

function AutocompleteInputComponent<Item, Ref>(
props: Props<Item>,
props: AutocompleteInputProps<Item>,
ref: React.ForwardedRef<Ref>
): React.ReactElement {
const defaultRenderItems: ListRenderItem<Item> = ({ item }) => <Text>{String(item)}</Text>;
Expand Down

0 comments on commit 591c051

Please sign in to comment.