0

I have rendered list-view with multiple text fields in react native ,I want to get all data that is filled in the list text fields on save button, can someone guide me on this?I'm new to react native. adding screenshot of list-view below

image

1 Answer 1

1

You can save the data in the state as soon as text is changed in the input field. (onChange property of input)

onChangeText={(text) => this.setState({text})}

Create a list in the state with key and value. Key represent index and value represents text (data) at that index of the list.

And on button click get the list from state.

Sign up to request clarification or add additional context in comments.

1 Comment

thanks for your reply, actually I'm rendering row data using class and have form with multiple input types you can check image attached in the question, and save button is outside the list-view

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.