LLJS
LLJS copied to clipboard
React native casting error
I am getting an error after writing this code that the type cast expression is expected to be wrapped with parenthesis. Here is my code:
onPressedButton = channelId => {
this.setState(this.state.channelId: channelId) // here i am getting the error
Try this :-
onPressedButton =(channelId) => { this.setState ({ channelId : channelId })
Hey I have a new issue on React Native please solve I have uploaded it on GitHub . Username: Darshan972
On Sun, Sep 1, 2019, 9:08 PM Shubham Aniket [email protected] wrote:
Try this :-
onPressedButton =(channelId) => { this.setState ({ channelId : channelId })
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mbebenita/LLJS/issues/42?email_source=notifications&email_token=AMU7NELONFXNU6YZKUCGSLTQHPOWFA5CNFSM4ISTRVGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5UEZVQ#issuecomment-526929110, or mute the thread https://github.com/notifications/unsubscribe-auth/AMU7NEJFJDNEHU6ZMTSAYZTQHPOWFANCNFSM4ISTRVGA .
I am getting an error after writing this code that the type cast expression is expected to be wrapped with parenthesis. Here is my code:
onPressedButton = channelId => {
this.setState(this.state.channelId: channelId) // here i am getting the error
Did the solution which i provided , worked?
Yes it worked , but after it get another error.
On Tue, Sep 10, 2019, 8:35 PM Shubham Aniket [email protected] wrote:
I am getting an error after writing this code that the type cast expression is expected to be wrapped with parenthesis. Here is my code:
onPressedButton = channelId => {
this.setState(this.state.channelId: channelId) // here i am getting the error
Did the solution which i provided , worked?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mbebenita/LLJS/issues/42?email_source=notifications&email_token=AMU7NENDK5SXAGRNBIYM6XLQI6ZVDA5CNFSM4ISTRVGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6LNVEY#issuecomment-529980051, or mute the thread https://github.com/notifications/unsubscribe-auth/AMU7NEI6HHSCOAYVLPYAWY3QI6ZVDANCNFSM4ISTRVGA .
I uploaded the problem on Github
On Tue, Sep 10, 2019, 8:37 PM Anonymous 2 [email protected] wrote:
Yes it worked , but after it get another error.
On Tue, Sep 10, 2019, 8:35 PM Shubham Aniket [email protected] wrote:
I am getting an error after writing this code that the type cast expression is expected to be wrapped with parenthesis. Here is my code:
onPressedButton = channelId => {
this.setState(this.state.channelId: channelId) // here i am getting the error
Did the solution which i provided , worked?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mbebenita/LLJS/issues/42?email_source=notifications&email_token=AMU7NENDK5SXAGRNBIYM6XLQI6ZVDA5CNFSM4ISTRVGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6LNVEY#issuecomment-529980051, or mute the thread https://github.com/notifications/unsubscribe-auth/AMU7NEI6HHSCOAYVLPYAWY3QI6ZVDANCNFSM4ISTRVGA .
Hey , can you help me I have a problem in my code.
On Tue, Sep 10, 2019, 8:38 PM Anonymous 2 [email protected] wrote:
I uploaded the problem on Github
On Tue, Sep 10, 2019, 8:37 PM Anonymous 2 [email protected] wrote:
Yes it worked , but after it get another error.
On Tue, Sep 10, 2019, 8:35 PM Shubham Aniket [email protected] wrote:
I am getting an error after writing this code that the type cast expression is expected to be wrapped with parenthesis. Here is my code:
onPressedButton = channelId => {
this.setState(this.state.channelId: channelId) // here i am getting the error
Did the solution which i provided , worked?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mbebenita/LLJS/issues/42?email_source=notifications&email_token=AMU7NENDK5SXAGRNBIYM6XLQI6ZVDA5CNFSM4ISTRVGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6LNVEY#issuecomment-529980051, or mute the thread https://github.com/notifications/unsubscribe-auth/AMU7NEI6HHSCOAYVLPYAWY3QI6ZVDANCNFSM4ISTRVGA .