ordering-ui-react-native 0.21.25 → 0.21.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.21.25",
3
+ "version": "0.21.26",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -53,7 +53,6 @@ const NewOrderNotificationUI = (props: any) => {
53
53
  let times = 0
54
54
 
55
55
  const handleCloseEvents = () => {
56
- notificationSound.stop()
57
56
  setCurrentEvent(null)
58
57
  clearInterval(_timeout)
59
58
  }
@@ -120,7 +119,11 @@ const NewOrderNotificationUI = (props: any) => {
120
119
  }, [])
121
120
 
122
121
  useEffect(() => {
123
- return () => handleCloseEvents()
122
+ return () => {
123
+ handleCloseEvents()
124
+ notificationSound.stop()
125
+ notificationSound.release()
126
+ }
124
127
  }, [])
125
128
 
126
129
  return (