Jerald George

1

votes
0

answer
17

views

Possible un handled promise rejection: Type error: null is not an object (evaluating 'this.toastInstance_root.showToast')

Am trying to add log out functionality using API call , logOut = () => { this.props.dispatch(logOut()).then( (response) => { Toast.show({ text: response, position: 'bottom', type: 'success' }); }); this.props.navigation.navigate('Home'); }; in both success and error block i am clearing the local sta...
Jerald George
0

votes
1

answer
17

views

React native push notification using firebase

I have finished installing initial setup for android ,following this link and now trying to setup Notification installation on Android facing errors tried a lot but not getting a proper solution. My error is in below,
Jerald George
2

votes
1

answer
42

views

Display a value from firebase to a page while opening it

Having a page of adding auction , while add auction the auction number should be display by default while opens add auction page . In my case the number is displayed only after clicking and trying to add number or while exiting the field. And the number will come from fire base as per the count alre...
Jerald George
7

votes
1

answer
126

views

Why is camel case used in 'getElementById' but not in 'onclick'? [closed]

While learning JavaScript, I noticed that some of the functions, for instance getElementById(), are in camel case while the onclick is not. I would like to know why there is a difference in the function naming in JavaScript. document.getElementById('demo').onclick = function() {myFunction()}; docume...
Jerald George