akveo / akveo/react-native-ui-kitten

Toggle component incorrect work on the web.

Đang mở
#1,396 8 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
10.7k
Fork
962
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hello everyone. Great library. Thanks for it.

## 🐛 Bug Report

When click on the toggle component on ui incorrect display state of component true/false. On the mobile works as need. In your documentation work as need(https://akveo.github.io/react-native-ui-kitten/docs/assets/playground-build/#/ToggleSimpleUsage)

## To Reproduce

Code from example.

```
import React from 'react';
import { Toggle } from '@ui-kitten/components';

export const ToggleSimpleUsageShowcase = () => {

const [checked, setChecked] = React.useState(false);

const onCheckedChange = (isChecked) => {
setChecked(isChecked);
};

return (

{`Checked: ${checked}`}

);
};
```

![image](https://user-images.githubusercontent.com/7217517/113662247-66521d00-96b0-11eb-8969-736ab5eb0a28.png)
![image](https://user-images.githubusercontent.com/7217517/113662275-736f0c00-96b0-11eb-8995-207b13138b74.png)
**If set "checked" property from code then display correct. If click then incorrect.**
![image](https://user-images.githubusercontent.com/7217517/113662381-a74a3180-96b0-11eb-9b38-67657d359c27.png)
![image](https://user-images.githubusercontent.com/7217517/113662395-b03b0300-96b0-11eb-9c21-ffbab5c2367a.png)

## Expected behavior

When click toggle then switcher to need correct.

## Link to runnable example or repository (highly encouraged)

## UI Kitten and Eva version

| Package | Version |
| ----------- | ----------- |
| @eva-design/eva | 2.0.0 |
| @ui-kitten/components | 5.0.0 |

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.