Skip to content

Commit

Permalink
fix: demo app tweaks (#3821)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak authored Apr 17, 2023
1 parent f9d3db1 commit 1fd71db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 5 additions & 1 deletion example/src/ExampleList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ export default function ExampleList({ navigation }: Props) {
}

return (
<List.Item title={data.title} onPress={() => navigation.navigate(id)} />
<List.Item
unstable_pressDelay={65}
title={data.title}
onPress={() => navigation.navigate(id)}
/>
);
};

Expand Down
5 changes: 2 additions & 3 deletions example/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ export function inputReducer<T extends keyof State>(
) {
switch (action.type) {
case action.type:
state[action.type] = action.payload;
return { ...state };
return { ...state, [action.type]: action.payload };
default:
return { ...state };
return state;
}
}

Expand Down

0 comments on commit 1fd71db

Please sign in to comment.