diff --git a/example/src/LaunchScreen.tsx b/example/src/LaunchScreen.tsx index 0176032c4..32c04645e 100644 --- a/example/src/LaunchScreen.tsx +++ b/example/src/LaunchScreen.tsx @@ -7,6 +7,7 @@ import * as XMTP from 'xmtp-react-native-sdk' import { useXmtp } from 'xmtp-react-native-sdk' import { NavigationParamList } from './Navigation' +import { TestCategory } from './TestScreen' import { supportedCodecs } from './contentTypes/contentTypes' import { useSavedKeys } from './hooks' @@ -17,6 +18,9 @@ export default function LaunchScreen( this: any, { navigation }: NativeStackScreenProps ) { + const [selectedTest, setSelectedTest] = useState( + TestCategory.all + ) const [selectedNetwork, setSelectedNetwork] = useState< 'dev' | 'local' | 'production' >('dev') @@ -65,6 +69,13 @@ export default function LaunchScreen( { key: 1, label: 'false' }, ] + const testOptions = Object.entries(TestCategory).map( + ([key, value], index) => ({ + key: index, + label: value, + }) + ) + useEffect(() => { ;(async () => { if (signer) { @@ -80,29 +91,25 @@ export default function LaunchScreen( return ( Automated Tests - -