From 490eaf332ef5dcbbb2abc5526550a82565818134 Mon Sep 17 00:00:00 2001 From: Sergey Tsegelnyk Date: Sat, 17 Mar 2018 22:07:09 +0200 Subject: [PATCH] add proptypes to app.js --- App.js | 7 +++++++ package.json | 1 + 2 files changed, 8 insertions(+) diff --git a/App.js b/App.js index d69c0a287..99e8b5c51 100644 --- a/App.js +++ b/App.js @@ -1,6 +1,7 @@ /** @type {AppStorage} */ import './shim.js' import React from 'react' +import PropTypes from 'prop-types' import { Text, ScrollView, StyleSheet } from 'react-native' import { DrawerNavigator, SafeAreaView } from 'react-navigation' import MainBottomTabs from './MainBottomTabs' @@ -24,6 +25,12 @@ const CustomDrawerContentComponent = (props) => ( ) +CustomDrawerContentComponent.propTypes = { + navigation: PropTypes.shape({ + navigate: PropTypes.func + }) +} + const styles = StyleSheet.create({ container: { marginTop: 20, diff --git a/package.json b/package.json index a65a928f4..0cb6bea11 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "mocha": "^5.0.4", "node-libs-react-native": "^1.0.1", "process": "^0.11.10", + "prop-types": "^15.6.1", "react": "16.0.0", "react-native": "https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz", "react-native-camera": "^0.12.0",