diff --git a/example/src/examples/Memoization.tsx b/example/src/examples/Memoization.tsx new file mode 100644 index 00000000..5778da33 --- /dev/null +++ b/example/src/examples/Memoization.tsx @@ -0,0 +1,54 @@ +import React from 'react' +import { Text, View, type StyleProp, type TextStyle, Button } from 'react-native' +import { createStyleSheet, useStyles } from '../styles' + +export const Memoization: React.FunctionComponent = () => { + const { styles } = useStyles(stylesheet) + const [ count, setCount ] = React.useState(0) + + return ( + + + + +