8000 Latest react-native 0.79.2 & Expo version errors makes tanstack form unusable · Issue #1534 · TanStack/form · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Latest react-native 0.79.2 & Expo version errors makes tanstack form unusable #1534
Closed
@fendyk

Description

@fendyk

Describe the bug

When doing something simple as using the form.Field, I receive the following error:

right operand of 'instanceof' is not an object

Code (check repo for more info):

const form = useForm({
  defaultValues: {
    firstName: "John",
    lastName: "Doe",
  },
  onSubmit: async ({ value }) => {
    // Do something with form data
    console.log(value);
  },
});

<form.Field
    name={"firstName"}
    children={(field) => (
        <View>
          <Text className={"bg-red-500 text-2xl"}>{field.state.value}</Text>
        </View>
    )}
/>

Your minimal, reproducible example

https://github.com/fendyk/RN-Expo-Tanstack-Form-Example.git

Steps to reproduce

Clone the following repo:
https://github.com/fendyk/RN-Expo-Tanstack-Form-Example.git

install deps, and then run bun run android

Expected behavior

It should work as intended

How often does this bug happen?

Every time

Screenshots or Videos

Image
Image

Platform

Android & iOS (React native)

TanStack Form adapter

None

TanStack Form version

1.11.3 or greater

TypeScript version

5.8.3 or greater

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

      0