Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange cross in a box is appearing in place of checkbox of React-native-paper

I am using a checkbox from react-native-paper library but when I render that checkbox in my component a strange special box with a cross appears on screen as you can see in the picture. enter image description here

Here's my code:

Import

import { TextInput, Checkbox } from 'react-native-paper';

Component

 <Checkbox
                status={checked ? 'checked' : 'unchecked'}
                onPress={() => { setChecked(!checked); }}
            />
like image 606
Syyam Noor Avatar asked Nov 16 '25 11:11

Syyam Noor


1 Answers

As mentioned at https://github.com/oblador/react-native-vector-icons#option-with-gradle-recommended

Adding apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" at the bottom of the file android/app/build.gradle I resolved my the same issue and icons are now showing correctly.

like image 132
Ajay Avatar answered Nov 19 '25 08:11

Ajay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!