Skip to content

Prop-types + dependency updates #314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
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
1 change: 1 addition & 0 deletions components/DropDownMenu/DropDownModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
LayoutAnimation,
Dimensions,
} from 'react-native';
import PropTypes from 'prop-types';
import _ from 'lodash';

import { Button } from '../Button';
Expand Down
1 change: 1 addition & 0 deletions components/GridRow.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import PropTypes from 'prop-types';
import React, { Children } from 'react';
import { View as RNView } from 'react-native';
import PropTypes from 'prop-types';
import _ from 'lodash';

import { View } from './View';
Expand Down
1 change: 1 addition & 0 deletions components/HorizontalPager/Page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

import { View } from '../../index';

Expand Down
1 change: 1 addition & 0 deletions components/ImageGalleryOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { Component } from 'react';
import {
ScrollView,
} from 'react-native';
import PropTypes from 'prop-types';

import { connectStyle } from '@shoutem/theme';
import { connectAnimation } from '@shoutem/animation';
Expand Down
1 change: 1 addition & 0 deletions components/ImagePreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Image,
TouchableOpacity,
} from 'react-native';
import PropTypes from 'prop-types';

import Icon from 'react-native-vector-icons/MaterialIcons';

Expand Down
1 change: 1 addition & 0 deletions components/ListView.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import {
View,
ListView as RNListView,
Expand Down
1 change: 1 addition & 0 deletions components/NavigationBar/NavigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Platform,
View,
} from 'react-native';
import PropTypes from 'prop-types';

import _ from 'lodash';

Expand Down
1 change: 1 addition & 0 deletions components/RichMedia.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import { Html } from '../html';

export default function RichMedia({ body }) {
Expand Down
1 change: 1 addition & 0 deletions components/ScrollView/ScrollDriverProvider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component, Children } from 'react';
import PropTypes from 'prop-types';
import { DriverShape, ScrollDriver } from '@shoutem/animation';
import * as _ from 'lodash';
/**
Expand Down
1 change: 1 addition & 0 deletions components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Animated } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import _ from 'lodash';
Expand Down
1 change: 1 addition & 0 deletions components/ShareButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
import React, {
Component,
} from 'react';
import PropTypes from 'prop-types';

import { Share, Platform } from 'react-native';

Expand Down
1 change: 1 addition & 0 deletions components/Spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import {
ActivityIndicator,
} from 'react-native';
import PropTypes from 'prop-types';

import { connectStyle } from '@shoutem/theme';

Expand Down
1 change: 1 addition & 0 deletions components/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
import React, {
Component,
} from 'react';
import PropTypes from 'prop-types';

import { TouchableWithoutFeedback } from 'react-native';

Expand Down
1 change: 1 addition & 0 deletions components/TextInput.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { TextInput as RNTextInput } from 'react-native';
import PropTypes from 'prop-types';

import { connectStyle } from '@shoutem/theme';
import { connectAnimation } from '@shoutem/animation';
Expand Down
1 change: 1 addition & 0 deletions examples/RestaurantsApp/app/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';

import {
Expand Down
1 change: 1 addition & 0 deletions examples/RestaurantsApp/app/RestaurantDetails.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
ScrollView,
Icon,
Expand Down
1 change: 1 addition & 0 deletions examples/RestaurantsApp/app/RestaurantsList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Image,
ListView,
Expand Down
1 change: 1 addition & 0 deletions examples/components/Stage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';

import { View, Text } from 'react-native';

Expand Down
1 change: 1 addition & 0 deletions html/Html.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Platform, InteractionManager } from 'react-native';
import PropTypes from 'prop-types';
import _ from 'lodash';

import { View, Spinner } from '@shoutem/ui';
Expand Down
1 change: 1 addition & 0 deletions html/components/Gallery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

import { InlineGallery } from '../../components/InlineGallery';

Expand Down
1 change: 1 addition & 0 deletions html/components/Image.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Image as RNImage } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import _ from 'lodash';
Expand Down
1 change: 1 addition & 0 deletions html/elements/A.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import { Linking } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import _ from 'lodash';
Expand Down
1 change: 1 addition & 0 deletions html/elements/Inline.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';

import { View } from '../../components/View';
Expand Down
1 change: 1 addition & 0 deletions html/elements/Video.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import { View } from '../../components/View';
import { Video as UIVideo } from '../../components/Video';
import Image from '../components/Image';
Expand Down
1 change: 1 addition & 0 deletions html/elements/list/Li.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';

import { View } from '../../../components/View';
import { ElementPropTypes } from '../../Html';
Expand Down
1 change: 1 addition & 0 deletions html/elements/list/Ol.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';

import { View } from '../../../components/View';
import { Text } from '../../../components/Text';
Expand Down
1 change: 1 addition & 0 deletions html/elements/list/Ul.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import { Text } from '@shoutem/ui';

import { View } from '../../../components/View';
Expand Down
1 change: 1 addition & 0 deletions navigation/CardStack.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import {
InteractionManager,
} from 'react-native';
Expand Down
1 change: 1 addition & 0 deletions navigation/NavigationBar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { DriverShape } from '@shoutem/animation';
import { connectStyle } from '@shoutem/theme';
Expand Down
1 change: 1 addition & 0 deletions navigation/NavigationBarView.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import tinyColor from 'tinycolor2';

Expand Down
1 change: 1 addition & 0 deletions navigation/SceneProvider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Children, Component } from 'react';
import PropTypes from 'prop-types';

/**
* Provides the current navigation scene to child components.
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,36 @@
"@shoutem/animation": "~0.11.0",
"@shoutem/theme": "~0.10.0",
"babel-plugin-transform-decorators-legacy": "~1.3.4",
"buffer": "~4.5.1",
"events": "1.1.0",
"buffer": "^5.0.7",
"events": "^1.1.1",
"html-entities": "~1.2.0",
"htmlparser2": "~3.9.0",
"lodash": "~4.15.0",
"qs": "~4.0.0",
"lodash": "^4.17.4",
"prop-types": "^15.5.10",
"qs": "^6.5.1",
"react-native-lightbox": "shoutem/react-native-lightbox#4e58b9b1aca166142d69b161ff511efc3358ff9f",
"react-native-linear-gradient": "~2.2.0",
"react-native-transformable-image": "shoutem/react-native-transformable-image#7d15395ec3857571711a12bc08f24f3a96ff1cde",
"react-native-vector-icons": "~4.3.0",
"react-native-photo-view": "~1.4.0",
"react-native-navigation-experimental-compat": "1.0.0",
"stream": "0.0.2",
"tinycolor2": "~1.3.0"
"tinycolor2": "^1.4.1"
},
"peerDependencies": {
"react": "^15.0.0",
"react-native": ">=0.40.0"
},
"devDependencies": {
"babel": "^6.3.26",
"babel-preset-react-native": "^1.9.0",
"chai": "^3.4.1",
"babel-preset-react-native": "^4.0.0",
"chai": "^4.1.2",
"deep-freeze": "0.0.1",
"enzyme": "^2.0.0-rc1",
"mocha": "^2.3.4",
"mocha": "^3.5.3",
"react-addons-test-utils": "^15.3.1",
"react-dom": "^15.3.1",
"react-native-mock": "^0.2.5"
"react-native-mock": "^0.3.1"
},
"scripts": {
"test": "mocha -R spec --require test-utils/setup.js --require react-native-mock/mock.js --compilers js:babel-core/register $(find . -name '*.spec.js' ! -ipath '*node_modules*')"
Expand Down