From 4f07371d768c9830d23a3c3ee874737eaeef4a9e Mon Sep 17 00:00:00 2001 From: "Devin.Zhu" Date: Fri, 29 Jan 2021 17:41:08 +0800 Subject: [PATCH] chore: dependencies --- README.md | 6 ++++++ README.zh-CN.md | 6 ++++++ package.json | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 059dd4d..3f37162 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,12 @@ yarn add react-native-lifecycle ``` +### Peer Dependencies + +```sh +yarn add @react-navigation/native # >= 5.7.0 +``` + ### Usage ##### Global Hooks diff --git a/README.zh-CN.md b/README.zh-CN.md index 6dc07af..96d5cce 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -11,6 +11,12 @@ yarn add react-native-lifecycle ``` +### 第三方依赖 + +```sh +yarn add @react-navigation/native # >= 5.7.0 +``` + ### 如何使用 ##### 全局 Hooks diff --git a/package.json b/package.json index 3a11e7d..77ecdb5 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "react-native-lifecycle", - "version": "1.2.0", + "version": "1.2.1", "description": "React Native Lifecycle", "main": "dist/index.js", "repository": "git@github.com:Chooin/react-native-lifecycle.git", "author": "Devin.Zhu", "license": "MIT", - "dependencies": { + "peerDependencies": { "@react-navigation/native": "^5.7.0" }, "devDependencies": {