Skip to content

Commit 527b98a

Browse files
committed
react-native-elements dependency is removed
1 parent 4f6daa8 commit 527b98a

5 files changed

Lines changed: 22 additions & 9 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ npm i react-native-bottom-bar
2727
"react-native-bottom-bar": "WrathChaos/react-native-bottom-bar#expo"
2828
```
2929

30+
### Peer Dependencies :
31+
32+
You must install these dependencies!
33+
34+
```ruby
35+
"react": ">= 16.x",
36+
"react-native": ">= 0.55.x",
37+
"react-native-vector-icons": ">= 6.0",
38+
"react-native-iphone-x-helper": ">= 1.2",
39+
"react-native-linear-gradient": ">= 2.4.x",
40+
"react-native-dynamic-vector-icons": ">= x.x.x"
41+
```
3042

3143
## Usage
3244

examples/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"dependencies": {
1111
"react": "16.6.3",
1212
"react-native": "0.58.4",
13-
"react-native-bottom-bar": "^0.1.4",
13+
"react-native-bottom-bar": "^0.1.5",
14+
"react-native-dynamic-vector-icons": "0.0.3",
1415
"react-native-elements": "^0.19.1",
1516
"react-native-iphone-x-helper": "^1.2.0",
1617
"react-native-linear-gradient": "^2.5.3",

lib/src/components/MainIconButton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from "react";
22
import { Platform, View, TouchableOpacity } from "react-native";
33
import LinearGradient from "react-native-linear-gradient";
4-
import { Icon } from "react-native-elements";
4+
import Icon from "react-native-dynamic-icons";
55
import colors from "./styles/common/colors";
66
import sharedStyle, { defaultShadowStyle } from "./styles/common/shared.style";
77
import BottomIconsStyle from "./styles/BottomIcons.style";
@@ -47,7 +47,7 @@ export default class MainIconButton extends Component {
4747
{mainIcon || (
4848
<Icon
4949
name="ios-car"
50-
type="ionicon"
50+
type="Ionicon"
5151
size={35}
5252
color={mainIconColor || colors.theme.light.white}
5353
/>

lib/src/components/MiniButton.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from "react";
22
import { TouchableOpacity, View } from "react-native";
3-
import { Icon } from "react-native-elements";
3+
import Icon from "react-native-dynamic-vector-icons";
44
import styles from "./styles/MiniButton.style";
55
import colors from "./styles/common/colors";
66
import { shadowStyle } from "./styles/common/shared.style";
@@ -16,9 +16,9 @@ export default class MiniButton extends Component {
1616
>
1717
<View>
1818
<Icon
19-
name="help-circle"
20-
type="material-community"
2119
size={40}
20+
name="help-circle"
21+
type="MaterialCommunityIcons"
2222
color={color || colors.theme.light.primary}
2323
shadowStyle={shadowStyle.buttonStyle}
2424
/>

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-bottom-bar",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "Fully customizable BottomBar for React Native.",
55
"keywords": [
66
"react-native",
@@ -28,10 +28,10 @@
2828
"peerDependencies": {
2929
"react": ">= 16.x",
3030
"react-native": ">= 0.55.x",
31-
"react-native-elements": ">= 0.19",
3231
"react-native-vector-icons": ">= 6.0",
3332
"react-native-iphone-x-helper": ">= 1.2",
34-
"react-native-linear-gradient": ">= 2.4.x"
33+
"react-native-linear-gradient": ">= 2.4.x",
34+
"react-native-dynamic-vector-icons": ">= x.x.x"
3535
},
3636
"devDependencies": {
3737
"@types/react": "^16.4.15",

0 commit comments

Comments
 (0)