You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I Tried this code on my windows machine with chrome as a browser but code does not works
`import addNotification from 'react-push-notification';
import './App.css'
function App() {
const buttonClick = () => {
addNotification({
title: 'Warning',
subtitle: 'This is a subtitle',
message: 'This is a very long message',
theme: 'darkblue',
duration: 5000,
native: true // when using native, your OS will handle theming.
});
};
return (
Hello world.
);
}
export default App`
The text was updated successfully, but these errors were encountered:
Update your code as follows
`import addNotification from 'react-push-notification';
import './App.css'
function App() {
const btnClicked = () => {
addNotification({
title: 'Warning',
subtitle: 'This is a subtitle',
message: 'This is a very long message',
theme: 'darkblue',
duration: 5000,
native: true // when using native, your OS will handle theming.
});
};
I Tried this code on my windows machine with chrome as a browser but code does not works
`import addNotification from 'react-push-notification';
import './App.css'
function App() {
const buttonClick = () => {
addNotification({
title: 'Warning',
subtitle: 'This is a subtitle',
message: 'This is a very long message',
theme: 'darkblue',
duration: 5000,
native: true // when using native, your OS will handle theming.
});
};
return (
Hello world.
);
}
export default App`
The text was updated successfully, but these errors were encountered: