npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@icarus00x/react-native-appwrite-expo-newarch

v0.1.6

Published

This repo is diy fix for issues that appeared in an expo prject after enabling newArch, please refer to the official appwrite sdk for updates

Readme

Appwrite React Native SDK - New Architecture Fix

This repository is a fork of the official Appwrite React Native SDK, specifically created to address TurboModule errors that occur when using the New Architecture in React Native.

Background

Appwrite is a powerful backend platform for web and mobile applications. This fork exists as a temporary solution to resolve compatibility issues that emerged when testing applications after upgrading Expo and enabling the New Architecture.

Note: This is a temporary workaround, not an official upgrade. Please use with caution and refer to the official repository for regular updates and maintenance.

Why This Fork Exists

This package specifically addresses compatibility issues with the New Architecture in React Native. The modifications focus on resolving errors originating from src/client.ts by providing alternative module implementations.

Current Status

This fork has been tested and works in production applications, but should be considered a temporary solution until the official SDK is updated.

Fix Details

Two approaches have been tested:

  1. Using Expo Device Module:

    import * as Device from 'expo-device';
       
    this.realtime.socket = new WebSocket(url, undefined, {
        headers: {
            Origin: `appwrite-${Device.osName}://${this.config.platform}`
        }
    });

    This solution was found to be inconsistent on certain Android devices where Device.osName returns unexpected values.

  2. Using Expo Constants: This is the current implementation which has been tested successfully across 7 devices (including 3 iOS devices) without errors.

Installation

npx expo install @icarus00x/react-native-appwrite-expo-newarch react-native-url-polyfill

Setup Guide

1. Import URL Polyfill

In your index.js file, add:

import 'react-native-url-polyfill/auto'

iOS Note: Remember to install pods with cd ios && pod install && cd ..

2. Initialize the SDK

import { Client } from 'react-native-appwrite';

const client = new Client();

client
    .setEndpoint('https://your-endpoint/v1') // Your Appwrite Endpoint
    .setProject('your-project-id')           // Your project ID
    .setPlatform('com.example.yourapp')      // Your application ID or bundle ID
;

3. Make Your First Request

import { Client, Account, ID } from 'react-native-appwrite';

const client = new Client();
client
    .setEndpoint('https://your-endpoint/v1')
    .setProject('your-project-id')
    .setPlatform('com.example.yourapp')
;

const account = new Account(client);

// Register User
account.create(ID.unique(), '[email protected]', 'password', 'Jane Doe')
    .then(response => {
        console.log(response);
    })
    .catch(error => {
        console.log(error);
    });

Platform Configuration

Before using this SDK, you'll need to configure your application in the Appwrite Console:

  1. Create an account and project in Appwrite if you haven't already
  2. Add your platform (Android or iOS)

For iOS

  • Add your app name and Bundle ID (found in XCode under the General tab or in app.json for Expo projects)

For Android

  • Add your app name and package name (typically the applicationId in your app-level build.gradle file or in app.json for Expo projects)

Additional Resources

Contributing

This fork is maintained as a temporary solution. For long-term fixes, please consider contributing to the official SDK repository following their contribution guidelines.

License

This project is licensed under the BSD-3-Clause license.