Skip to content

Commit

Permalink
Remove picker props type
Browse files Browse the repository at this point in the history
  • Loading branch information
slauzinho committed Oct 2, 2020
1 parent cb95213 commit e76a12d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/WheelPicker.ios.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import React, { useState } from "react";
import { View } from "react-native";
import { Picker } from "@react-native-community/picker";
import { PickerItemProps } from "@react-native-community/picker/typings/Picker";

type Props = {
interface Props {
data: Array<string>;
selectedItem?: number;
onItemSelected?: Function;
disabled?: boolean;
} & PickerItemProps;
}

const WheelPicker: React.FC<Props> = props => {
const [selectedItem, setSelectedItem] = useState(props.selectedItem || 0);
Expand Down

0 comments on commit e76a12d

Please sign in to comment.