akveo / akveo/react-native-ui-kitten
Toggle component incorrect work on the web.
- 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}`}
);
};
```


**If set "checked" property from code then display correct. If click then incorrect.**


## 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
Đánh giá
Issue này chưa được đánh giá.