react-native-invertible-scroll-view
Advanced tools
Comparing version 1.0.0 to 1.1.0
'use strict'; | ||
import React, { | ||
PropTypes, | ||
} from 'react'; | ||
import createReactClass from 'create-react-class'; | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
import cloneReferencedElement from 'react-clone-referenced-element'; | ||
import { | ||
@@ -13,4 +14,2 @@ ScrollView, | ||
import cloneReferencedElement from 'react-clone-referenced-element'; | ||
type DefaultProps = { | ||
@@ -20,3 +19,3 @@ renderScrollComponent: (props: Object) => ReactElement; | ||
let InvertibleScrollView = React.createClass({ | ||
let InvertibleScrollView = createReactClass({ | ||
mixins: [ScrollableMixin], | ||
@@ -75,2 +74,3 @@ | ||
verticallyInverted: { | ||
flex: 1, | ||
transform: [ | ||
@@ -81,2 +81,3 @@ { scaleY: -1 }, | ||
horizontallyInverted: { | ||
flex: 1, | ||
transform: [ | ||
@@ -83,0 +84,0 @@ { scaleX: -1 }, |
{ | ||
"name": "react-native-invertible-scroll-view", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "An invertible ScrollView for React Native", | ||
@@ -23,2 +23,4 @@ "main": "InvertibleScrollView.js", | ||
"dependencies": { | ||
"create-react-class": "^15.6.0", | ||
"prop-types": "^15.5.10", | ||
"react-clone-referenced-element": "^1.0.1", | ||
@@ -25,0 +27,0 @@ "react-native-scrollable-mixin": "^1.0.1" |
@@ -62,7 +62,7 @@ # InvertibleScrollView [![Slack](http://slack.exponentjs.com/badge.svg)](http://slack.exponentjs.com) | ||
); | ||
}, | ||
} | ||
_renderRow(row) { | ||
return <Text key={row} style={styles.row}>{row}</Text> | ||
}, | ||
} | ||
@@ -98,3 +98,3 @@ _onPress() { | ||
}, | ||
} | ||
}); | ||
``` | ||
@@ -101,0 +101,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12390
6
72
4
+ Addedcreate-react-class@^15.6.0
+ Addedprop-types@^15.5.10
+ Addedcreate-react-class@15.7.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact-is@16.13.1(transitive)