Last active
September 13, 2018 13:58
-
-
Save kachaMukabe/ca2fee0e623da25827b0e7cde022784b to your computer and use it in GitHub Desktop.
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
import React from 'react'; | |
import { ProcessingView } from 'expo-processing'; | |
export default class App extends React.Component { | |
render() { | |
return ( | |
<ProcessingView style={{ flex: 1 }} sketch={this._sketch} /> | |
); | |
} | |
_sketch = (p) => { | |
// Sets up the sketch | |
p.setup = () => { | |
} | |
// Called every frame | |
p.draw = () => { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment