Created
April 8, 2018 03:15
-
-
Save bberak/cdba2cf1a6193fa4afea3bf1b66d2be7 to your computer and use it in GitHub Desktop.
React Native Donkey Kong - App.js
This file contains hidden or 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
| import React, { PureComponent } from "react"; | |
| import { StyleSheet, StatusBar } from "react-native"; | |
| import { GameEngine } from "react-native-game-engine"; | |
| import { LevelOne } from "./entities"; | |
| export default class App extends PureComponent { | |
| constructor(props) { | |
| super(props); | |
| } | |
| render() { | |
| return ( | |
| <GameEngine | |
| ref={"engine"} | |
| style={styles.game} | |
| systems={[]} | |
| entities={LevelOne()} | |
| > | |
| <StatusBar hidden={true} /> | |
| </GameEngine> | |
| ); | |
| } | |
| } | |
| const styles = StyleSheet.create({ | |
| game: { | |
| backgroundColor: "#000" | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment