import { ProcessingView } from 'expo-processing'; import React from 'react'; import { View, StyleProp, ViewStyle } from 'react-native'; import { Colors } from '../../constants'; /** * Given a `title` and a processing.js `sketch` function, return a component displaying that Processing sketch. * @param title string * @param sketch processing.js `sketch` function */ // See: https://github.com/expo/expo/pull/10229#discussion_r490961694 // eslint-disable-next-line @typescript-eslint/ban-types export default

} = {}>( title: string, sketch: (p: any) => void ) => { const wrapped = (props: P) => ( ); wrapped.title = title; return wrapped; };