appwrite / sdk-for-react-native Goto Github PK
View Code? Open in Web Editor NEWOfficial Appwrite React Native SDK ๐ โ๏ธ
Home Page: https://appwrite.io
License: BSD 3-Clause "New" or "Revised" License
Official Appwrite React Native SDK ๐ โ๏ธ
Home Page: https://appwrite.io
License: BSD 3-Clause "New" or "Revised" License
Start a new React Native project.
Enable OAuth.
import React from 'react';
import {Button, Text, View} from 'react-native';
import {Client, Account} from 'appwrite';
const client = new Client()
.setEndpoint('https://endpoint/v1')
.setProject('12343455667');
const App = () => {
function handleUserLogin() {
const account = new Account(client);
const session = account.createOAuth2Session('google');
return session;
}
return (
<View>
<Text>Hello world</Text>
<Button title="Login" onPress={handleUserLogin} />
</View>
);
};
Should have opened a window for selecting an account from the OAuth client like google
Throwed Error
TypeError: Cannot set property href of [object WorkerLocation] which has only a getter
Different version (specify in environment)
Windows
I am using Appwrite v:1.0.1.500
React Native 0.70.1
React 18.1.0
i created an empty expo app
npx create-expo-app my-app
install react-native-appwrite
using this command
npx expo install react-native-appwrite react-native-url-polyfill
it should typed correctly
Different version (specify in environment)
MacOS
v0.2.2
It's not feasible for Expo users if react-native-fs
is used. Instead, it's better to use expo-file-system
.
use expo-file-system
instead
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.