From b1bdc9c0d57a28ae4829714f56db491b76d99403 Mon Sep 17 00:00:00 2001 From: Hatem Hosny Date: Fri, 6 Dec 2024 19:45:53 +0200 Subject: [PATCH] temporarily skip reactive native till official react19 support see: https://github.com/necolas/react-native-web/issues/2686 https://github.com/necolas/react-native-web/pull/2731 --- e2e/specs/starter.spec.ts | 4 ++-- .../templates/starter/react-native-starter.ts | 24 ++++++------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/e2e/specs/starter.spec.ts b/e2e/specs/starter.spec.ts index 1de706b64..363a58fbc 100644 --- a/e2e/specs/starter.spec.ts +++ b/e2e/specs/starter.spec.ts @@ -75,7 +75,7 @@ test.describe('Starter Templates from UI', () => { }); }); - test('React Native Starter', async ({ page, getTestUrl }) => { + test.skip('React Native Starter', async ({ page, getTestUrl }) => { await page.goto(getTestUrl()); const { app, getResult, waitForResultUpdate } = await getLoadedApp(page); @@ -676,7 +676,7 @@ test.describe('Starter Templates from URL', () => { }); }); - test('React Native Starter (in URL)', async ({ page, getTestUrl }) => { + test.skip('React Native Starter (in URL)', async ({ page, getTestUrl }) => { await page.goto(getTestUrl({ template: 'react-native' })); const { app, getResult, waitForResultUpdate } = await getLoadedApp(page); diff --git a/src/livecodes/templates/starter/react-native-starter.ts b/src/livecodes/templates/starter/react-native-starter.ts index f1c32d12b..409b17d7e 100644 --- a/src/livecodes/templates/starter/react-native-starter.ts +++ b/src/livecodes/templates/starter/react-native-starter.ts @@ -16,7 +16,6 @@ export const reactNativeStarter: Template = { script: { language: 'react-native', content: ` -import { useState } from "react"; import { Button, Image, StyleSheet, Text, View } from "react-native"; const logoUri = \`data:image/svg+xml;utf8,\`; @@ -31,16 +30,6 @@ function Link(props) { ); } -function Counter(props) { - const [count, setCount] = useState(props.initialCount); - return ( - - You clicked {count} times. -