Skip to content

Instantly share code, notes, and snippets.

@kachaMukabe
Last active September 13, 2018 13:58
Show Gist options
  • Save kachaMukabe/ca2fee0e623da25827b0e7cde022784b to your computer and use it in GitHub Desktop.
Save kachaMukabe/ca2fee0e623da25827b0e7cde022784b to your computer and use it in GitHub Desktop.
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