Skip to content

Commit

Permalink
Specify sane defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilddev committed Oct 28, 2021
1 parent 778b0b8 commit 6e48599
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 6 additions & 1 deletion components/ContainerFillingScrollView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@ const styles = StyleSheet.create({
*/
export const ContainerFillingScrollView: React.FunctionComponent<ScrollViewProps> =
(props) => (
<ScrollView pointerEvents="box-none" style={styles.scrollView} {...props} />
<ScrollView
pointerEvents="box-none"
style={styles.scrollView}
keyboardShouldPersistTaps="handled"
{...props}
/>
);
7 changes: 2 additions & 5 deletions components/ContainerFillingScrollView/unit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import { unwrapRenderedFunctionComponent } from "../../utilities/unwrapRenderedF

test(`renders as expected`, () => {
const rendered = (
<ContainerFillingScrollView
horizontal
decelerationRate="fast"
pointerEvents="box-none"
>
<ContainerFillingScrollView horizontal decelerationRate="fast">
<Text>Test Content</Text>
</ContainerFillingScrollView>
);
Expand All @@ -20,6 +16,7 @@ test(`renders as expected`, () => {
decelerationRate="fast"
style={{ width: `100%`, height: `100%` }}
pointerEvents="box-none"
keyboardShouldPersistTaps="handled"
>
<Text>Test Content</Text>
</ScrollView>
Expand Down

0 comments on commit 6e48599

Please sign in to comment.