Here is my code:
function Adddetails () {
set(ref(db, ‘users/’ + phone), {
phone: phone,
parent: parent
}).then(() => {
alert(‘data updated’);
})
.catch((error) => {
alert(error);
});
};
>Solution :
Seems like you are confusing React concepts with React Native. In React Native we don’t have HTML based button. Either use Button component imported from react-native or Use a TouchableOpacity from react-native.
Also if that button is your own component make sure it Starts with a Captial B <Button/>
