Skip to content

Commit 65aa140

Browse files
committed
KeyboardAccessoryView - use others instead of passing each prop literally.
1 parent 63cc033 commit 65aa140

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

lib/components/Keyboard/KeyboardInput/KeyboardAccessoryView.tsx

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -245,35 +245,22 @@ class KeyboardAccessoryView extends Component<KeyboardAccessoryViewProps> {
245245

246246
render() {
247247
const {
248-
revealKeyboardInteractive,
249-
manageScrollView,
250-
requiresSameParentToManageScrollView,
251-
addBottomView,
252-
bottomViewColor,
253-
allowHitsOutsideBounds,
254248
renderContent,
255249
kbInputRef,
256250
kbComponent,
257251
onItemSelected,
258252
onRequestShowKeyboard,
259253
useSafeArea,
260-
usesBottomTabs
254+
...others
261255
} = this.props;
262256

263257
return (
264258
<KeyboardTrackingView
259+
{...others}
260+
scrollBehavior={this.getIOSTrackingScrollBehavior()}
265261
ref={(r: any) => (this.trackingViewRef = r)}
266262
style={styles.trackingToolbarContainer}
267-
// @ts-ignore
268263
onLayout={this.onContainerComponentHeightChanged}
269-
scrollBehavior={this.getIOSTrackingScrollBehavior()}
270-
revealKeyboardInteractive={revealKeyboardInteractive}
271-
manageScrollView={manageScrollView}
272-
requiresSameParentToManageScrollView={requiresSameParentToManageScrollView}
273-
addBottomView={addBottomView}
274-
bottomViewColor={bottomViewColor}
275-
allowHitsOutsideBounds={allowHitsOutsideBounds}
276-
usesBottomTabs={usesBottomTabs}
277264
>
278265
<>{renderContent?.()}</>
279266
<CustomKeyboardView

0 commit comments

Comments
 (0)