Add values in array using React-native
1. Below Are The Lines Of Source Code Of React-Native import { StyleSheet, Text, View, Alert, TouchableOpacity, ScrollView, Platform, TextInput } from 'react-native'; import React, { Component } from 'react'; class Practice extends React.Component { constructor(props) { super(props); this.collection = [ { carBrand: 'suzuki', carName: 'Baleno' }, { carBrand: 'tata', carName: 'Nexon' } ], this.arr = []; this.state = { name: '', forAdd: [] } } addfn() { this.arr.push(String(this.state.name)) this.setState({ forAdd: this.arr }) } render() { return ( <View style={styles.MainContainer}> { this.collection.map((item, key) => ( <View style={{ justifyContent: 'space-around