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.
- package/package.json +1 -1
- package/template/agora-rn-uikit/.git/HEAD +1 -0
- package/template/agora-rn-uikit/.git/config +16 -0
- package/template/agora-rn-uikit/.git/description +1 -0
- package/template/agora-rn-uikit/.git/hooks/applypatch-msg.sample +15 -0
- package/template/agora-rn-uikit/.git/hooks/commit-msg.sample +24 -0
- package/template/agora-rn-uikit/.git/hooks/fsmonitor-watchman.sample +173 -0
- package/template/agora-rn-uikit/.git/hooks/post-update.sample +8 -0
- package/template/agora-rn-uikit/.git/hooks/pre-applypatch.sample +14 -0
- package/template/agora-rn-uikit/.git/hooks/pre-commit.sample +49 -0
- package/template/agora-rn-uikit/.git/hooks/pre-merge-commit.sample +13 -0
- package/template/agora-rn-uikit/.git/hooks/pre-push.sample +53 -0
- package/template/agora-rn-uikit/.git/hooks/pre-rebase.sample +169 -0
- package/template/agora-rn-uikit/.git/hooks/pre-receive.sample +24 -0
- package/template/agora-rn-uikit/.git/hooks/prepare-commit-msg.sample +42 -0
- package/template/agora-rn-uikit/.git/hooks/push-to-checkout.sample +78 -0
- package/template/agora-rn-uikit/.git/hooks/update.sample +128 -0
- package/template/agora-rn-uikit/.git/index +0 -0
- package/template/agora-rn-uikit/.git/info/exclude +6 -0
- package/template/agora-rn-uikit/.git/logs/HEAD +3 -0
- package/template/agora-rn-uikit/.git/logs/refs/heads/ab-dev-auto +1 -0
- package/template/agora-rn-uikit/.git/logs/refs/heads/master +1 -0
- package/template/agora-rn-uikit/.git/logs/refs/remotes/origin/HEAD +1 -0
- package/template/agora-rn-uikit/.git/objects/pack/pack-19a65e0782e617d79275088a06e668496d6e2d73.idx +0 -0
- package/template/agora-rn-uikit/.git/objects/pack/pack-19a65e0782e617d79275088a06e668496d6e2d73.pack +0 -0
- package/template/agora-rn-uikit/.git/packed-refs +11 -0
- package/template/agora-rn-uikit/.git/refs/heads/ab-dev-auto +1 -0
- package/template/agora-rn-uikit/.git/refs/heads/master +1 -0
- package/template/agora-rn-uikit/.git/refs/remotes/origin/HEAD +1 -0
- package/template/agora-rn-uikit/.gitignore +63 -0
- package/template/agora-rn-uikit/package-lock.json +7612 -0
- package/template/agora-rn-uikit/src/RTCConfigure.tsx +6 -2
- package/template/react-native-toast-message/.gitignore +5 -0
- package/template/react-native-toast-message/.npmignore +5 -0
- package/template/react-native-toast-message/package-lock.json +10553 -0
- package/template/src/.DS_Store +0 -0
- 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
|
-
|
|
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
|
-
|
|
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
|
}
|