forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Expensify#33871 from software-mansion-labs/@kosmyd…
…el/ts/OptionsList
- Loading branch information
Showing
10 changed files
with
266 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React, {forwardRef} from 'react'; | ||
import type {ForwardedRef} from 'react'; | ||
import {Keyboard} from 'react-native'; | ||
import BaseOptionsList from './BaseOptionsList'; | ||
import type {OptionsListProps, OptionsList as OptionsListType} from './types'; | ||
|
||
function OptionsList(props: OptionsListProps, ref: ForwardedRef<OptionsListType>) { | ||
return ( | ||
<BaseOptionsList | ||
// eslint-disable-next-line react/jsx-props-no-spreading | ||
{...props} | ||
ref={ref} | ||
onScrollBeginDrag={() => Keyboard.dismiss()} | ||
/> | ||
); | ||
} | ||
|
||
OptionsList.displayName = 'OptionsList'; | ||
|
||
export default forwardRef(OptionsList); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.