Skip to content

Commit cad813e

Browse files
Merge pull request #21 from richardbarrell-calvium/proptypes-fix
Fix PropTypes import
2 parents 0590959 + a49b087 commit cad813e

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Especially useful for accessing screens that are hard to get to, or for testing
66

77
![animated gif](docs/Demo.gif)
88

9+
Requires react-native >= 0.43.0. For older versions of RN, please use version 0.4.0 or below.
10+
911
# Installation
1012

1113
This is a pure JavaScript library, so there's no need to run `react-native link` or manually add any frameworks or libraries.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-component-viewer",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "A searchable list of components or scenes in your app. Handy for tweaking layout or design without using the app",
55
"main": "index.js",
66
"scripts": {},

src/DebugSceneList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {Component, PropTypes} from 'react';
1+
import React, {Component} from 'react';
2+
import PropTypes from 'prop-types';
23

34
import {View, StyleSheet, Text, TouchableHighlight, ScrollView, AsyncStorage} from 'react-native';
45
import {getTests, getTest, addUpdateListener, removeUpdateListener} from './TestRegistry';

src/SearchableList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {Component, PropTypes} from 'react';
1+
import React, {Component} from 'react';
2+
import PropTypes from 'prop-types';
23

34
import {View, StyleSheet, Text, ListView, TextInput, TouchableHighlight, Platform} from 'react-native';
45

0 commit comments

Comments
 (0)