agora-appbuilder-core 1.0.10 → 2.0.0

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.
Files changed (37) hide show
  1. package/package.json +1 -1
  2. package/template/agora-rn-uikit/.git/HEAD +1 -0
  3. package/template/agora-rn-uikit/.git/config +16 -0
  4. package/template/agora-rn-uikit/.git/description +1 -0
  5. package/template/agora-rn-uikit/.git/hooks/applypatch-msg.sample +15 -0
  6. package/template/agora-rn-uikit/.git/hooks/commit-msg.sample +24 -0
  7. package/template/agora-rn-uikit/.git/hooks/fsmonitor-watchman.sample +173 -0
  8. package/template/agora-rn-uikit/.git/hooks/post-update.sample +8 -0
  9. package/template/agora-rn-uikit/.git/hooks/pre-applypatch.sample +14 -0
  10. package/template/agora-rn-uikit/.git/hooks/pre-commit.sample +49 -0
  11. package/template/agora-rn-uikit/.git/hooks/pre-merge-commit.sample +13 -0
  12. package/template/agora-rn-uikit/.git/hooks/pre-push.sample +53 -0
  13. package/template/agora-rn-uikit/.git/hooks/pre-rebase.sample +169 -0
  14. package/template/agora-rn-uikit/.git/hooks/pre-receive.sample +24 -0
  15. package/template/agora-rn-uikit/.git/hooks/prepare-commit-msg.sample +42 -0
  16. package/template/agora-rn-uikit/.git/hooks/push-to-checkout.sample +78 -0
  17. package/template/agora-rn-uikit/.git/hooks/update.sample +128 -0
  18. package/template/agora-rn-uikit/.git/index +0 -0
  19. package/template/agora-rn-uikit/.git/info/exclude +6 -0
  20. package/template/agora-rn-uikit/.git/logs/HEAD +3 -0
  21. package/template/agora-rn-uikit/.git/logs/refs/heads/ab-dev-auto +1 -0
  22. package/template/agora-rn-uikit/.git/logs/refs/heads/master +1 -0
  23. package/template/agora-rn-uikit/.git/logs/refs/remotes/origin/HEAD +1 -0
  24. package/template/agora-rn-uikit/.git/objects/pack/pack-19a65e0782e617d79275088a06e668496d6e2d73.idx +0 -0
  25. package/template/agora-rn-uikit/.git/objects/pack/pack-19a65e0782e617d79275088a06e668496d6e2d73.pack +0 -0
  26. package/template/agora-rn-uikit/.git/packed-refs +11 -0
  27. package/template/agora-rn-uikit/.git/refs/heads/ab-dev-auto +1 -0
  28. package/template/agora-rn-uikit/.git/refs/heads/master +1 -0
  29. package/template/agora-rn-uikit/.git/refs/remotes/origin/HEAD +1 -0
  30. package/template/agora-rn-uikit/.gitignore +63 -0
  31. package/template/agora-rn-uikit/package-lock.json +7612 -0
  32. package/template/agora-rn-uikit/src/RTCConfigure.tsx +6 -2
  33. package/template/react-native-toast-message/.gitignore +5 -0
  34. package/template/react-native-toast-message/.npmignore +5 -0
  35. package/template/react-native-toast-message/package-lock.json +10553 -0
  36. package/template/src/.DS_Store +0 -0
  37. package/template/src/subComponents/.DS_Store +0 -0
@@ -226,7 +226,9 @@ const RtcConfigure: React.FC<Partial<RtcPropsInterface>> = (props) => {
226
226
  audioState = true;
227
227
  }
228
228
  const audioChange = (user: UidInterface) => {
229
- if (user.uid == action.value[0]) {
229
+ // updated condition to prevent undefined value to set in the state
230
+ // so it will retain the previous state value
231
+ if (user.uid == action.value[0] && audioState !== undefined) {
230
232
  user.audio = audioState;
231
233
  user.video = user.video;
232
234
  }
@@ -246,7 +248,9 @@ const RtcConfigure: React.FC<Partial<RtcPropsInterface>> = (props) => {
246
248
  videoState = true;
247
249
  }
248
250
  const videoChange = (user: UidInterface) => {
249
- if (user.uid == action.value[0]) {
251
+ //updated condition to check undefined for preventing blinking issue in native - mobile
252
+ //so it will prevent the previous state vaule
253
+ if (user.uid == action.value[0] && videoState !== undefined) {
250
254
  user.video = videoState;
251
255
  user.audio = user.audio;
252
256
  }
@@ -0,0 +1,5 @@
1
+ .DS_Store
2
+ .git
3
+ node_modules
4
+ .idea
5
+ coverage
@@ -0,0 +1,5 @@
1
+ __tests__
2
+ coverage
3
+ .eslintrc.js
4
+ .prettierrc.js
5
+ success-toast.gif