Last active
May 27, 2019 05:19
-
-
Save anchetaWern/c967de1899a7c4c105738da6485e80d4 to your computer and use it in GitHub Desktop.
React Native Accelerometer Maze: import packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// App.js | |
import React, { Component } from 'react'; | |
import { View, Alert, Dimensions } from 'react-native'; | |
import { GameEngine } from 'react-native-game-engine'; | |
import RNRestart from 'react-native-restart'; | |
import { | |
accelerometer, | |
setUpdateIntervalForType, | |
SensorTypes | |
} from "react-native-sensors"; | |
import Matter from 'matter-js'; | |
import Circle from './src/components/Circle'; | |
import Rectangle from './src/components/Rectangle'; | |
import CreateMaze from './src/helpers/CreateMaze'; | |
import GetRandomPoint from './src/helpers/GetRandomPoint'; | |
const { height, width } = Dimensions.get('window'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment