Skip to content

Commit fad9557

Browse files
authored
Merge pull request #2207 from appwrite/fix-react-native
Fix console commands
2 parents ae2905c + d444e80 commit fad9557

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/routes/(console)/project-[region]-[project]/overview/platforms/createReactNative.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import ConnectionLine from './components/ConnectionLine.svelte';
2626
import OnboardingPlatformCard from './components/OnboardingPlatformCard.svelte';
2727
import { PlatformType } from '@appwrite.io/console';
28+
import { project } from '../../store';
2829
2930
let showExitModal = false;
3031
let isPlatformCreated = false;
@@ -36,6 +37,7 @@
3637
'\ngit clone https://github.com/appwrite/starter-for-react-native\ncd starter-for-react-native\n';
3738
3839
const updateConfigCode = `EXPO_PUBLIC_APPWRITE_PROJECT_ID=${projectId}
40+
EXPO_PUBLIC_APPWRITE_PROJECT_NAME="${$project.name}"
3941
EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.project).client.config.endpoint}`;
4042
4143
export let platform: PlatformType = PlatformType.Reactnativeandroid;
@@ -235,7 +237,13 @@ EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.p
235237
</div>
236238

237239
<Typography.Text variant="m-500"
238-
>3. Run the app on a connected device or simulator, then click the <InlineCode
240+
>3. Run the app on a connected device or simulator using <InlineCode
241+
size="s"
242+
code="npm install" /> followed by <InlineCode
243+
size="s"
244+
code={platform === PlatformType.Reactnativeios
245+
? 'npm run ios'
246+
: 'npm run android'} />, then click the <InlineCode
239247
size="s"
240248
code="Send a ping" /> button to verify the setup.</Typography.Text>
241249
</Layout.Stack>

0 commit comments

Comments
 (0)