diff --git a/example/src/Bench.tsx b/example/src/Bench.tsx index 9adbfaf..1d147fc 100644 --- a/example/src/Bench.tsx +++ b/example/src/Bench.tsx @@ -8,6 +8,7 @@ import { Pressable, } from 'react-native' import RNFS from 'react-native-fs' +import Clipboard from '@react-native-clipboard/clipboard' import { initWhisper } from '../../src' // whisper.rn import contextOpts from './context-opts' @@ -345,13 +346,19 @@ export default function Bench() { > Run benchmark - + [ + styles.logContainer, + { backgroundColor: pressed ? '#ccc' : 'lightgray', opacity: pressed ? 0.75 : 1 }, + ]} + onPress={() => Clipboard.setString(logs.join('\n'))} + > {logs.map((msg, index) => ( {msg} ))} - + setLogs([])}> Clear Logs