question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find variable: name in RN

See original GitHub issue

Describe the bug Can't find variable: name on upgrding version to 3.28.3, It was working fine with 3.27.0

Any changes in API. My Inputs are also configured with Yup schema for validations

Screenshots image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
adriansocommented, Nov 26, 2019
import { TextField } from 'react-native-material-textfield';
import useForm from 'react-hook-form';
  const { register, setValue, handleSubmit, errors } = useForm({
    defaultValues: {
      email,
      password,
    },
  });
<TextField
          testID="email"
          value={email}
          label="Email"
          lineWidth={0}
          keyboardType="email-address"
          autoCapitalize="none"
          containerStyle={styles.input}
          inputContainerStyle={styles.inputContainer}
          titleTextStyle={styles.inputTitle}
          labelOffset={{ y0: -6 }}
          tintColor="#231f20"
          returnKeyType="next"
          textContentType="username"
          autoCompleteType="username"
          ref={register({ name: 'email' }, { required: true })}
          onChangeText={text => setValue('email', text, true)}
          error={errors.email && 'Please enter your email'}
        />
0reactions
bluebill1049commented, Jan 6, 2020

The issue is can’t find variable name? I don’t think that’s issue of react-hook-form

triggerValidation({ name, value: text }); where is the name?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How I can find variable: Name in react-native? - Stack Overflow
My idea is pass the data to here to create a query with RealmDB but the MetroServer returt an error "Can't find variable:...
Read more >
can't find variable name when its inside an if statement-React ...
Coding example for the question can't find variable name when its inside an if statement-React Native.
Read more >
React Native 开发 Can't find variable:Symbol 错误解决方案
描述:一个RN的项目,运行没问题,升级了一些库之后再次运行出现了 can't find variable:Symbol 提示 原因:mobx的版本用的最新版本.
Read more >
Help with react navigation : r/reactnative - Reddit
Am getting can't find variable navigation error on my code and am not sure how to ... Screen name = "Add faces" component={Add}...
Read more >
Speaking Stata: Finding Variables - SAGE Journals
a form you cannot easily reuse, at least without retyping a lot of variable names. Such retyping is clearly unattractive, tedious, and error-prone....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found