Skip to content

React Native (Expo) not working with TanStack Form #1744

@RobertOstermann

Description

@RobertOstermann

Describe the bug

Describe the bug

Not sure if this is a bug or just an issue with how I have everything setup. I get an error whenever trying to use TanStack Form with React Native (Expo).

Your minimal, reproducible example

N/A

Steps to reproduce

  • Create a React Native (Expo) project
  • Setup TanStack Form. I used createFormHook to reduce boilerplate.
  • Attempt to run the project using React Native on an IOS simulator
  • Note the error: "Uncaugh Error: (0, _classPrivateFieldLooseBase2(...)_eventTarget]().addEventListener is not a function (it is undefined)

Expected behavior

TanStack Form should work for React Native out of the box without any additional configuration.

How often does this bug happen?

Every time

Screenshots or Videos

Image

Platform

Platform

  • Mac with IOS simulator

TanStack Form adapter

react-form

TanStack Form version

v1.21.1

TypeScript version

v5.8.3

Expo version

v53.0.22

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions