Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pre-populate the value in the Text Input ? #14793

Closed
PManager1 opened this issue Jul 1, 2017 · 3 comments
Closed

How to pre-populate the value in the Text Input ? #14793

PManager1 opened this issue Jul 1, 2017 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@PManager1
Copy link

Is this a bug report?

(write your answer here)

Have you read the Bugs section of the Contributing to React Native Guide?

(Write your answer here.)

Environment

  1. react-native -v:
  2. node -v:
  3. npm -v:
  4. yarn --version (if you use Yarn):

Then, specify:

  1. Target Platform (e.g. iOS, Android):
  2. Development Operating System (e.g. macOS Sierra, Windows 10):
  3. Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant):

Steps to Reproduce

(Write your steps here:)

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

(Write what happened. Add screenshots!)

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

@jp928
Copy link

jp928 commented Jul 1, 2017

<TextInput defaultValue="xxx" />

@PManager1
Copy link
Author

PManager1 commented Jul 1, 2017 via email

@PManager1
Copy link
Author

@jp928 Im sorry it didnt work.

      <View style={styles.field}>
        <TextInput
          {...email}
          placeholder="Email"
          style={styles.textInput}
          defaultValue="E@e.com"
          />
      </View>

      <View style={styles.field}>
        <TextInput
          {...password}
          placeholder="Password"
          style={styles.textInput}
          defaultValue="E"
          />
      </View>

@hramos hramos closed this as completed Jul 5, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Jul 5, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants