[Solved] Can I create a function to update Firebase?

I have a button and when click that button a db should change in firebase depending on the value of current db value.
now i want to add multiple buttons to same screen . how can i make a function so that i do not have to do
this

every time i create a button.just call the fuction inside “when buttonX click” should work…

it looks like this is what you want. (NOTE: it’s untested!)

2 Likes

yes its working thanks . :grinning: :grinning:

1 Like

If @manyone has answered your question @biswajitjei02n8v0iw can you please :white_check_mark: Mark it as the solution

Thanks!

2 Likes