Skip to content

Commit 6d36b4e

Browse files
committed
Gravity wells working ok
1 parent d8365ce commit 6d36b4e

19 files changed

Lines changed: 52 additions & 351 deletions

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { Animated, PanResponder } from 'react-native'
2+
import injectDependencies from './playground/src/lib/InteractableView'
3+
4+
export default {
5+
View: injectDependencies(Animated, PanResponder)
6+
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "react-native-interactable-web",
3-
"version": "0.1.0",
2+
"name": "react-interactable",
3+
"version": "0.3.0",
44
"description": "A port of react-native-interactable to make it work on the web",
5-
"main": "rniw.js",
5+
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},

physics/PhysicsAnchorBehavior.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

physics/PhysicsAnimator.js

Lines changed: 0 additions & 130 deletions
This file was deleted.

physics/PhysicsBehavior.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

physics/PhysicsBounceBehavior.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

physics/PhysicsFrictionBehavior.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

physics/PhysicsGravityWellBehavior.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

physics/PhysicsSpringBehavior.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

playground/config/webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ module.exports = {
150150
// Support React Native Web
151151
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
152152
'react-native': 'react-native-web',
153-
'react-native-interactable': path.join(__dirname, '../src/interactable/index.js'),
153+
'react-native-interactable': path.join(__dirname, '../src/lib/index.js'),
154154
'assets': path.join(__dirname, '../src/assets'),
155155
},
156156
plugins: [

0 commit comments

Comments
 (0)