Closed duanyytop closed 4 years ago
I am using MKSwitch, my code as follows:
<MKSwitch checked= {true} trackSize={20} trackLength={48} onCheckedChange={(value) => this._updateSwitch(value)} onPress={() => console.log('orange switch pressed')} style={GiftStyles.itemSwitch} onColor="rgba(255,152,0,.3)" thumbOnColor="#ff0000" rippleColor="rgba(255,152,0,.2)" value={this.state.switchIsOn} />
The Switch can show normally, but when I click it , RN will show an error with "undefined is not an object (evaluating 'this.getThumb().startToggle')".
who can tell me how can I do ?
I am using MKSwitch, my code as follows:
<MKSwitch checked= {true} trackSize={20} trackLength={48} onCheckedChange={(value) => this._updateSwitch(value)} onPress={() => console.log('orange switch pressed')} style={GiftStyles.itemSwitch} onColor="rgba(255,152,0,.3)" thumbOnColor="#ff0000" rippleColor="rgba(255,152,0,.2)" value={this.state.switchIsOn} />
The Switch can show normally, but when I click it , RN will show an error with "undefined is not an object (evaluating 'this.getThumb().startToggle')".
who can tell me how can I do ?