# react-native-tabbar-animated

> the animated of react-native-tabbar

Latest version **1.0.5** (published 2017-12-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-tabbar-animated
pnpm add react-native-tabbar-animated
yarn add react-native-tabbar-animated
bun add react-native-tabbar-animated
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2017-12-08 |
| First published | 2017-12-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | chenhe |
| Maintainers | geekch |
| Keywords | react-native-tabbar-animated, react-native-animated, react-native-动画, rn动画 |

## Links

- npm: https://www.npmjs.com/package/react-native-tabbar-animated
- Repository: https://github.com/Geek-ch/react-native-tabbar-animated
- Homepage: https://github.com/Geek-ch/react-native-tabbar-animated#readme
- Issues: https://github.com/Geek-ch/react-native-tabbar-animated/issues
- npm.io page: https://npm.io/package/react-native-tabbar-animated

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 1.0.5 (latest) — 2017-12-08
- 1.0.4 — 2017-12-07
- 1.0.3 — 2017-12-07
- 1.0.2 — 2017-12-07
- 1.0.1 — 2017-12-07
- 1.0.0 — 2017-12-07

## README

# react-native-tabbar-animated
the animated of tabbar  

## 前言
 该组件主要是做一个小动画，目前用在tabbar上面，当然其他地方也可以用，可能其他地方适配不太好.
 
## github 仓库地址
 [react-native-tabbar-animated](https://github.com/Geek-ch/react-native-tabbar-animated)

## gif 项目中的效果
![效果](https://github.com/Geek-ch/react-native-tabbar-animated/blob/master/screenshots/animated.gif)

## install 安装
 `npm install react-native-tabbar-animated --save`
## use 使用

1.导入
 `import {CustomAnimation} from 'react-native-tabbar-animated' `
 
 2.使用在react-navigation 的 TabNavigator
  `<CustomAnimation animationStyle={'linear'} imageAddress={require('../img/nav-bar-mall-selected.png')} /> `
  
  demo：
```
Main: {
    screen: Mall,
    navigationOptions: ({screenProps}) =>({
        title: '商城',
        tabBarLabel:({ focused }) =>( focused?'置顶':'商城'),
        tabBarIcon: ({ tintColor,focused }) =>
            ( focused? <CustomAnimation animationStyle={'linear'} imageAddress={require('../img/nav-bar-mall-selected.png')} />
            :
            <Image source={!focused ? require('../img/nav-bar-mall.png') : require('../img/nav-bar-mall-selected.png') }
            style={ styles.icon }
            />
            )

    }),
},

```

## api 方法

| Prop | Description | Default |
|---|---|---|
|**`url`**|线上图片链接 |*{uri: 'https://s3.amazonaws.com/media-p.slid.es/uploads/alexanderfarennikov/images/1198519/reactjs.png'}*|
|**`imageAddress`**|本地图片 |`{require('../img/nav-bar-me.png')}`|
|**`animationStyle`**| 跳动,伸缩 |`spring`|
|**`animationStyle`**| 旋转 |`spin`|
|**`animationStyle`**| 上下移动 |`linear`|
|**`junpTime`**| 跳动持续时间 |`4000`|
|**`spinTime`**| 旋转持续时间 |*4000*|
|**`linearTime`**|移动持续时间 |*4000*|
|**`imageStyle`**| 图片的样式 |*None*|
|**`style`**|背景view样式 |`None`|




方法都是可选，根据需要加入

---
_Source: https://npm.io/package/react-native-tabbar-animated · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
