From 513105f257849f57f96dcd770e72ce8440d6de0b Mon Sep 17 00:00:00 2001 From: Chukwuemeka Ajima Date: Sun, 13 Nov 2022 20:42:38 +0100 Subject: [PATCH] chore(dependencies): remove deprecated dependencies - remove deprecated react-native-iphone-x-helper package - add up to date drop in replacement rn-iphone-helper package --- package.json | 2 +- src/index.js | 3 +-- yarn.lock | 7 ++++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 44ece26..693e55c 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,6 @@ "author": "just4fun ", "license": "MIT", "dependencies": { - "react-native-iphone-x-helper": "^1.2.0" + "rn-iphone-helper": "^1.0.0" } } diff --git a/src/index.js b/src/index.js index 6c60704..7216da4 100644 --- a/src/index.js +++ b/src/index.js @@ -7,8 +7,7 @@ import { StyleSheet, LayoutAnimation } from 'react-native'; -import { isIphoneX, getBottomSpace } from 'react-native-iphone-x-helper'; - +import { isIphoneX, getBottomSpace } from 'rn-iphone-helper' export default class KeyboardAccessory extends Component { static defaultProps = { backgroundColor: '#f6f6f6', diff --git a/yarn.lock b/yarn.lock index 857626c..4d5e892 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,7 @@ # yarn lockfile v1 -react-native-iphone-x-helper@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/react-native-iphone-x-helper/-/react-native-iphone-x-helper-1.2.0.tgz#9f8a376eb00bc712115abff4420318a0063fa796" +rn-iphone-helper@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/rn-iphone-helper/-/rn-iphone-helper-1.0.0.tgz#a8dd288db05ff5195a1675d2cf53566072f56815" + integrity sha512-pd1KxAlY2/GrUC2djAU2n8bE49nWljpq053CgJrsrj+3aRVioIpWSzgoWeS4g4sm+gNWSWZXjCmdUMTwyb1DIw==