Skip to content
Back

.setDevKey is not a function

  • 0
  • React Native
qorinn
22 Jun, 2025, 20:04

React Native Appwrite doesn't recognize Client.setDevKey

TL;DR
Issue: Developers are receiving an error message "Client.setDevKey is not a function" in their React Native Appwrite app. Solution: Appwrite for React Native does not have a setDevKey() function. Instead of trying to set the dev key directly, use the setEndpoint method with the dev key included in the endpoint URL.
qorinn
22 Jun, 2025, 20:05
TypeScript
const client = new Client()
    .setProject('id')
    .setDevKey('devkey');
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more