Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
*/

import React, {
Component,
PropTypes
Component
} from 'react';

import PropTypes from 'prop-types';

import {
StyleSheet,
View,
Expand Down Expand Up @@ -41,7 +42,7 @@ class PopContent extends Component{
let tipContent = [];
if(content instanceof Array){
content.forEach((item, index, arr) => {
if(index > 9){
if(index > 9){
return;
}
item && ( tipContent[index] = (<Text style={styles.tipContent} key={'tipContent' + index}>{item}</Text>) );
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-popup",
"version": "0.6.1",
"version": "0.6.2",
"description": "popup for react-native",
"main": "index.js",
"scripts": {
Expand All @@ -25,5 +25,8 @@
"bugs": {
"url": "https://github.com/beefe/react-native-popup/issues"
},
"homepage": "https://github.com/beefe/react-native-popup#readme"
"homepage": "https://github.com/beefe/react-native-popup#readme",
"dependencies": {
"prop-types": "^15.5.10"
}
}