馃摎 Documentation: need to import relevant class to create user without an error #20
Open
2 tasks done
Labels
documentation
Improvements or additions to documentation
馃挱 Description
import { Client, Account } from 'react-native-appwrite';
// Init your React Native SDK
const client = new Client();
client
.setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
.setProject('455x34dfkj')
.setPlatform('com.example.myappwriteapp') // YOUR application ID
;
const account = new Account(client);
// Register User
account.create(ID.unique(), 'me@example.com', 'password', 'Jane Doe')
.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
in here instant of using
import { Client, Account } from 'react-native-appwrite';
need to use
import { Client, Account ,ID } from 'react-native-appwrite';
if not ID.unique() will not be work properly
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: