@react-navigation/bottom-tabs 7.0.9 → 7.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/views/Badge.js +2 -1
- package/lib/commonjs/views/Badge.js.map +1 -1
- package/lib/commonjs/views/BottomTabView.js +2 -1
- package/lib/commonjs/views/BottomTabView.js.map +1 -1
- package/lib/module/views/Badge.js +3 -2
- package/lib/module/views/Badge.js.map +1 -1
- package/lib/module/views/BottomTabView.js +2 -1
- package/lib/module/views/BottomTabView.js.map +1 -1
- package/lib/typescript/commonjs/src/views/Badge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/views/BottomTabView.d.ts.map +1 -1
- package/lib/typescript/commonjs/tsconfig.build.tsbuildinfo +1 -1
- package/lib/typescript/module/src/views/Badge.d.ts.map +1 -1
- package/lib/typescript/module/src/views/BottomTabView.d.ts.map +1 -1
- package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/views/Badge.tsx +4 -1
- package/src/views/BottomTabView.tsx +3 -1
|
@@ -57,6 +57,8 @@ const NAMED_TRANSITIONS_PRESETS = {
|
|
|
57
57
|
},
|
|
58
58
|
} as const;
|
|
59
59
|
|
|
60
|
+
const useNativeDriver = Platform.OS !== 'web';
|
|
61
|
+
|
|
60
62
|
const hasAnimation = (options: BottomTabNavigationOptions) => {
|
|
61
63
|
const { animation, transitionSpec } = options;
|
|
62
64
|
|
|
@@ -158,7 +160,7 @@ export function BottomTabView(props: Props) {
|
|
|
158
160
|
return Animated[spec.animation](tabAnims[route.key], {
|
|
159
161
|
...spec.config,
|
|
160
162
|
toValue,
|
|
161
|
-
useNativeDriver
|
|
163
|
+
useNativeDriver,
|
|
162
164
|
});
|
|
163
165
|
})
|
|
164
166
|
.filter(Boolean) as Animated.CompositeAnimation[]
|