File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
1
/* @flow */
2
2
3
3
import React , { PureComponent } from 'react' ;
4
- import {
5
- Animated ,
6
- View ,
7
- TouchableWithoutFeedback ,
8
- StyleSheet ,
9
- } from 'react-native' ;
4
+ import { Animated , TouchableWithoutFeedback , StyleSheet } from 'react-native' ;
10
5
import TabBarIcon from './TabBarIcon' ;
11
6
12
7
import type {
@@ -135,7 +130,7 @@ export default class TabBarBottom
135
130
// Prepend '-1', so there are always at least 2 items in inputRange
136
131
const inputRange = [ - 1 , ...routes . map ( ( x : * , i : number ) => i ) ] ;
137
132
return (
138
- < View style = { [ styles . tabBar , style ] } >
133
+ < Animated . View style = { [ styles . tabBar , style ] } >
139
134
{ routes . map ( ( route : NavigationRoute , index : number ) => {
140
135
const focused = index === navigation . state . index ;
141
136
const scene = { route, index, focused } ;
@@ -164,7 +159,7 @@ export default class TabBarBottom
164
159
</ TouchableWithoutFeedback >
165
160
) ;
166
161
} ) }
167
- </ View >
162
+ </ Animated . View >
168
163
) ;
169
164
}
170
165
}
You can’t perform that action at this time.
0 commit comments