I am new in react native . In my project , I want to create new react native element (tag) after clicking on a button ( using onPress ) . in web environment and using javascript , this is something like this :
document.createElement('tag_name');
is there a way to do something like this in react native ?
First, you should create a component that has the elements that you want it to have, and then with useState toggle that component to be shown when you press on a button.