From 527b98a3efcfd661bde807b956651f69173af1d1 Mon Sep 17 00:00:00 2001 From: FreakyCoder Date: Thu, 4 Apr 2019 14:36:03 +0300 Subject: [PATCH] react-native-elements dependency is removed --- README.md | 12 ++++++++++++ examples/package.json | 3 ++- lib/src/components/MainIconButton.js | 4 ++-- lib/src/components/MiniButton.js | 6 +++--- package.json | 6 +++--- 5 files changed, 22 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 221bba1..3e0f53d 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,18 @@ npm i react-native-bottom-bar "react-native-bottom-bar": "WrathChaos/react-native-bottom-bar#expo" ``` +### Peer Dependencies : + +You must install these dependencies! + +```ruby +"react": ">= 16.x", +"react-native": ">= 0.55.x", +"react-native-vector-icons": ">= 6.0", +"react-native-iphone-x-helper": ">= 1.2", +"react-native-linear-gradient": ">= 2.4.x", +"react-native-dynamic-vector-icons": ">= x.x.x" +``` ## Usage diff --git a/examples/package.json b/examples/package.json index 7a38dca..f5d41e8 100644 --- a/examples/package.json +++ b/examples/package.json @@ -10,7 +10,8 @@ "dependencies": { "react": "16.6.3", "react-native": "0.58.4", - "react-native-bottom-bar": "^0.1.4", + "react-native-bottom-bar": "^0.1.5", + "react-native-dynamic-vector-icons": "0.0.3", "react-native-elements": "^0.19.1", "react-native-iphone-x-helper": "^1.2.0", "react-native-linear-gradient": "^2.5.3", diff --git a/lib/src/components/MainIconButton.js b/lib/src/components/MainIconButton.js index ebe4a0a..245c72f 100644 --- a/lib/src/components/MainIconButton.js +++ b/lib/src/components/MainIconButton.js @@ -1,7 +1,7 @@ import React, { Component } from "react"; import { Platform, View, TouchableOpacity } from "react-native"; import LinearGradient from "react-native-linear-gradient"; -import { Icon } from "react-native-elements"; +import Icon from "react-native-dynamic-icons"; import colors from "./styles/common/colors"; import sharedStyle, { defaultShadowStyle } from "./styles/common/shared.style"; import BottomIconsStyle from "./styles/BottomIcons.style"; @@ -47,7 +47,7 @@ export default class MainIconButton extends Component { {mainIcon || ( diff --git a/lib/src/components/MiniButton.js b/lib/src/components/MiniButton.js index 3756331..c025426 100644 --- a/lib/src/components/MiniButton.js +++ b/lib/src/components/MiniButton.js @@ -1,6 +1,6 @@ import React, { Component } from "react"; import { TouchableOpacity, View } from "react-native"; -import { Icon } from "react-native-elements"; +import Icon from "react-native-dynamic-vector-icons"; import styles from "./styles/MiniButton.style"; import colors from "./styles/common/colors"; import { shadowStyle } from "./styles/common/shared.style"; @@ -16,9 +16,9 @@ export default class MiniButton extends Component { > diff --git a/package.json b/package.json index b7c4640..452151f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-bottom-bar", - "version": "0.1.4", + "version": "0.1.5", "description": "Fully customizable BottomBar for React Native.", "keywords": [ "react-native", @@ -28,10 +28,10 @@ "peerDependencies": { "react": ">= 16.x", "react-native": ">= 0.55.x", - "react-native-elements": ">= 0.19", "react-native-vector-icons": ">= 6.0", "react-native-iphone-x-helper": ">= 1.2", - "react-native-linear-gradient": ">= 2.4.x" + "react-native-linear-gradient": ">= 2.4.x", + "react-native-dynamic-vector-icons": ">= x.x.x" }, "devDependencies": { "@types/react": "^16.4.15",