From 72634e04c654a7921bee52268cdb5fbf2e7467bc Mon Sep 17 00:00:00 2001 From: Almir Filho Date: Tue, 10 Oct 2017 14:42:24 -1000 Subject: [PATCH] Update prop types with prop-types package (react 16 compatible) --- library/ViewPager.js | 3 ++- package.json | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/library/ViewPager.js b/library/ViewPager.js index 6257317..d01bf1b 100644 --- a/library/ViewPager.js +++ b/library/ViewPager.js @@ -1,4 +1,5 @@ -import React, { PropTypes, Component } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { View, ListView, diff --git a/package.json b/package.json index aa4aa1d..1aa302c 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,11 @@ }, "author": "", "license": "ISC", + "peerDependencies": { + "react": "*", + "react-native": "*", + "prop-types": "*" + }, "dependencies": { "react-native-gesture-responder": "0.1.1", "react-native-scroller": "0.0.6",