fix: react native flow

This commit is contained in:
Torsten Dittmann
2024-08-21 13:05:01 +02:00
parent 28b54d82e8
commit 02b5da174f
3 changed files with 12 additions and 5 deletions
@@ -35,6 +35,11 @@
title: 'Android',
icon: 'color/android',
platform: Platform.Android
},
{
title: 'React Native',
icon: 'color/react',
platform: Platform.ReactNative
}
];
@@ -66,6 +66,8 @@
const getPlatformInfo = (platform: string) => {
if (platform.includes('flutter')) {
return 'color/flutter';
} else if (platform.includes('react-native')) {
return 'color/react';
} else if (platform.includes('apple')) {
return 'color/apple';
} else if (platform.includes('android')) {
@@ -9,11 +9,11 @@
const { endpoint, project } = sdk.forProject.client.config;
const code = `import { Client, Account, ID } from 'react-native-appwrite';
const client = new Client();
const client
.setEndpoint('${endpoint}')
.setProject('${project}')
.setPlatform('${$createPlatform.key}');`;
const client = new Client();
const client
.setEndpoint('${endpoint}')
.setProject('${project}')
.setPlatform('${$createPlatform.key}');`;
let showAlert = true;
</script>