Skip to content

Commit

Permalink
Merge branch 'master' into feature/initial-value-update
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomurrent-softwaresolutions authored Mar 11, 2021
2 parents 4f83ca4 + ae61586 commit 8f9462f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions lib/RNSingleSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,9 @@ const RNSingleSelect = (props: IProps) => {
selectedItem,
setSelectedItem,
] = React.useState<ISingleSelectDataType | null>(initialValue);
const [
placeholderText,
setPlaceholderText,
] = React.useState<string | undefined>(placeholder);
const [placeholderText, setPlaceholderText] = React.useState<
string | undefined
>(placeholder);
const [menuToggled, setMenuToggled] = React.useState<boolean | null>(false);
const [dataBackup, setDataBackup] = React.useState<
Array<ISingleSelectDataType> | undefined
Expand All @@ -123,7 +122,6 @@ const RNSingleSelect = (props: IProps) => {
React.useEffect(() => {
if (darkMode) setTheme(DARK);
else setTheme(LIGHT);

}, []);

React.useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@freakycoder/react-native-single-select",
"version": "0.3.3",
"version": "0.3.5",
"description": "Customizable & Easy to Use Single Select Library for React Native",
"main": "./build/dist/RNSingleSelect.js",
"repository": "[email protected]:WrathChaos/react-native-single-select.git",
Expand Down

0 comments on commit 8f9462f

Please sign in to comment.