mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: react native flow
This commit is contained in:
@@ -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')) {
|
||||
|
||||
+5
-5
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user