how to convert a react native class component to a function component code example
Example: convert app function to class component react native
const App = () => (
<div>
<p>
test
</p>
</div>
);
// to convert the above to a class component:
class App extends Component {
render() {
return (
<div>
<p>
test
</p>
</div>
);
}
}