-
Notifications
You must be signed in to change notification settings - Fork 35
feat: React Native SDK update for version 0.21.0 #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||||
| ```javascript | ||||||
| import { Client, Teams, Roles } from "react-native-appwrite"; | ||||||
| import { Client, Teams } from "react-native-appwrite"; | ||||||
|
|
||||||
| const client = new Client() | ||||||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||||||
|
|
@@ -10,7 +10,7 @@ const teams = new Teams(client); | |||||
| const result = await teams.updateMembership({ | ||||||
| teamId: '<TEAM_ID>', | ||||||
| membershipId: '<MEMBERSHIP_ID>', | ||||||
| roles: [Roles.Admin] | ||||||
| roles: [] | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same concern: empty Same as in - roles: []
+ roles: ['owner']📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| }); | ||||||
|
|
||||||
| console.log(result); | ||||||
|
|
||||||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example with empty
rolesarray doesn't demonstrate the new string-based usage.Since the
Rolesenum was removed in favor of free-form strings, the example should show a realistic role value (e.g.,['owner']) rather than an empty array. An empty array may confuse users into thinking roles are no longer needed or supported.📝 Committable suggestion
🤖 Prompt for AI Agents