Answers for "react.children.only expected to receive a single react element child"

2

react.children.only expected to receive a single react element child

/* Some components require to have just one children element inside,
So the solution is to wrap the elements inside the parent element with a 
<View></View> or a react fragment <> </> 

Example:
*/

<TouchableWithoutFeedback>
	<View>
		//your elements
	</View>
</TouchableWithoutFeedback>
Posted by: Guest on August-03-2021

Code answers related to "react.children.only expected to receive a single react element child"

Code answers related to "Javascript"

Browse Popular Code Answers by Language