mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Update import to TabView
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import * as React from "react";
|
||||
import { View } from "react-native";
|
||||
import { TabStack, renderSubView } from "react-router-navigation-core";
|
||||
import { TabBarProps, TabProps } from "react-router-navigation";
|
||||
import { TabViewAnimated } from "react-native-tab-view";
|
||||
import * as React from 'react';
|
||||
import { View } from 'react-native';
|
||||
import { TabStack, renderSubView } from 'react-router-navigation-core';
|
||||
import { TabBarProps, TabProps } from 'react-router-navigation';
|
||||
import { TabView } from 'react-native-tab-view';
|
||||
|
||||
type Props = TabBarProps & {
|
||||
children?: Array<React.ReactElement<TabProps>>;
|
||||
@@ -24,7 +24,7 @@ class BottomNavigation extends React.Component<Props, State> {
|
||||
render={props => {
|
||||
const ownProps = { ...this.props, ...props };
|
||||
return (
|
||||
<TabViewAnimated
|
||||
<TabView
|
||||
{...props}
|
||||
key={`transitioner_${this.state.key}`}
|
||||
animationEnabled={false}
|
||||
@@ -32,10 +32,11 @@ class BottomNavigation extends React.Component<Props, State> {
|
||||
sceneProps => <View />,
|
||||
ownProps
|
||||
)}
|
||||
renderFooter={renderSubView(
|
||||
renderTabBar={renderSubView(
|
||||
sceneProps => <View />,
|
||||
ownProps
|
||||
)}
|
||||
tabBarPosition="bottom"
|
||||
renderScene={renderSubView(
|
||||
sceneProps => <View />,
|
||||
ownProps
|
||||
|
||||
Reference in New Issue
Block a user