From a98072efa31d94b152549319d24d7ef92a584125 Mon Sep 17 00:00:00 2001 From: Pat Nakajima Date: Mon, 1 May 2023 16:15:39 -0700 Subject: [PATCH 1/8] Add TestView for tests --- example/App.tsx | 18 ++- example/ios/Podfile.lock | 2 +- .../project.pbxproj | 153 ++++++++++++++++++ .../xmtpreactnativesdkexample.xcscheme | 11 ++ .../xmtpreactnativesdkexampleUITests.swift | 34 ++++ ...ctnativesdkexampleUITestsLaunchTests.swift | 32 ++++ example/src/TestView.tsx | 11 ++ ios/XMTPReactNative.podspec | 2 +- package.json | 2 +- 9 files changed, 259 insertions(+), 6 deletions(-) create mode 100644 example/ios/xmtpreactnativesdkexampleUITests/xmtpreactnativesdkexampleUITests.swift create mode 100644 example/ios/xmtpreactnativesdkexampleUITests/xmtpreactnativesdkexampleUITestsLaunchTests.swift create mode 100644 example/src/TestView.tsx diff --git a/example/App.tsx b/example/App.tsx index 7a53ed419..544fa6dbf 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -1,21 +1,33 @@ import { ThirdwebProvider } from "@thirdweb-dev/react-native"; import React, { useState } from "react"; -import { SafeAreaView, StyleSheet } from "react-native"; +import { Button, SafeAreaView, StyleSheet, View } from "react-native"; import * as XMTP from "xmtp-react-native-sdk"; import AuthView from "./src/AuthView"; import HomeView from "./src/HomeView"; +import TestView from "./src/TestView"; export default function App() { const [client, setClient] = useState(null); + const [isTesting, setIsTesting] = useState(false); - return ( + return isTesting ? ( + + + + ) : ( {client != null ? ( ) : ( - + + +