Skip to content

Commit

Permalink
remove create-react-context
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Apr 24, 2018
1 parent e1f25e5 commit f2d0137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -78,7 +78,6 @@
"react-dom": ">= 16.0.0"
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.44",
"create-react-context": "^0.2.2"
"@babel/runtime": "^7.0.0-beta.44"
}
}
3 changes: 1 addition & 2 deletions src/Parallax.js
@@ -1,14 +1,13 @@
import React from 'react'
import PropTypes from 'prop-types'
import createContext from 'create-react-context'
import controller from './animated/AnimatedController'
import AnimatedValue from './animated/AnimatedValue'
import createAnimatedComponent from './animated/createAnimatedComponent'
import SpringAnimation from './animated/SpringAnimation'
import { config } from './Spring'

const AnimatedDiv = createAnimatedComponent('div')
const { Provider, Consumer } = createContext(null)
const { Provider, Consumer } = React.createContext(null)

function getScrollType(horizontal) {
return horizontal ? 'scrollLeft' : 'scrollTop'
Expand Down

0 comments on commit f2d0137

Please sign in to comment.