'using Checkbox in react native. Android emulator returns an Error

I need to use Checkbox in my react native app. However, CheckBox was removed from react native library so I had to use CheckBox from @react-native-community/checkbox. I followed the instruction, installed it using NPM, imported etc. VS code doesnt give any errors. However, Android emulator gives me this Error Error message

Does anybody know how it can be fixed? Thanks

Alternatively, please, recommend any other good library for CheckBox. Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source