how write separete navigation react native code example
Example: how to go to settings on next click in react native
const storeData = data => {
Settings.set(data);
setData(Settings.get("data"));
};
const storeData = data => {
Settings.set(data);
setData(Settings.get("data"));
};