Skip to content

Instantly share code, notes, and snippets.

@bberak
Created April 8, 2018 03:15
Show Gist options
  • Select an option

  • Save bberak/cdba2cf1a6193fa4afea3bf1b66d2be7 to your computer and use it in GitHub Desktop.

Select an option

Save bberak/cdba2cf1a6193fa4afea3bf1b66d2be7 to your computer and use it in GitHub Desktop.
React Native Donkey Kong - App.js
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