Skip to content

Commit

Permalink
[WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Sep 28, 2023
1 parent f76a783 commit cd7f021
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ export default class LocalSpatialAudioEngine
style={AgoraStyle.fullSize}
onChangeText={(text) => {
if (isNaN(+text)) return;
axisForward[index] = +text;
this.setState({ axisForward });
this.setState((preState) => {
preState.axisForward[index] = +text;
return { axisForward: preState.axisForward };
});
}}
numberKeyboard={true}
placeholder={`axisForward (defaults: ${
Expand All @@ -256,8 +258,10 @@ export default class LocalSpatialAudioEngine
style={AgoraStyle.fullSize}
onChangeText={(text) => {
if (isNaN(+text)) return;
axisRight[index] = +text;
this.setState({ axisRight });
this.setState((preState) => {
preState.axisRight[index] = +text;
return { axisRight: preState.axisRight };
});
}}
numberKeyboard={true}
placeholder={`axisRight (defaults: ${
Expand All @@ -274,8 +278,10 @@ export default class LocalSpatialAudioEngine
style={AgoraStyle.fullSize}
onChangeText={(text) => {
if (isNaN(+text)) return;
axisUp[index] = +text;
this.setState({ axisUp });
this.setState((preState) => {
preState.axisUp[index] = +text;
return { axisUp: preState.axisUp };
});
}}
numberKeyboard={true}
placeholder={`axisUp (defaults: ${
Expand Down

0 comments on commit cd7f021

Please sign in to comment.