3

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); }}
            />
Syyam Noor
  • 474
  • 5
  • 15

1 Answers1

4

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.

Ajay
  • 1,255
  • 1
  • 17
  • 30