Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant make it work on iOS #52

Closed
IlanZ93 opened this issue May 17, 2020 · 3 comments
Closed

Cant make it work on iOS #52

IlanZ93 opened this issue May 17, 2020 · 3 comments

Comments

@IlanZ93
Copy link

IlanZ93 commented May 17, 2020

Hello,

I use "import CheckBox from '@react-native-community/checkbox';" for my checkbox on Android, and now that i look for my App on iOS, i cant see the checkbox, i have 0 error on my simulator.

I have followed the instruction : (im on RN > 0.60)

npm install @react-native-community/checkbox --save
and install cocoapods
npx pod-install

I see that for iOS you refered to BEMCheckBox so i check the README and i tried to add "pod 'BEMCheckBox' " to my podfile, but still dont work.

I tried with example code but still dont work here my code :

import CheckBox from '@react-native-community/checkbox';
(...)

    Platform.OS === 'ios' ? (
      <CheckBox
        value={checked}
        onChange={() => unCheckOtherExpiries(idExpiry)}
        lineWidth={2}
        hideBox={false}
        boxType={'circle'}
        tintColor={'#9E663C'}
        onCheckColor={'#6F763F'}
        onFillColor={'#4DABEC'}
        onTintColor={'#F4DCF8'}
        animationDuration={0.5}
        disabled={false}
        onAnimationType={'bounce'}
        offAnimationType={'stroke'}
      />
    ) : (
      <CheckBox
        disabled={false}
        value={checked}
        onChange={() => unCheckOtherExpiries(idExpiry)}
      />
    );

(...)

      <View style={[contracts.infosView, contracts.flexRow]}>
        {checkBoxIdExpiry}
        <Text style={contracts.label}>{expiryName}</Text>
      </View>```
@nicholaslee119
Copy link
Collaborator

Sorry for your trouble, could you please answer the next questions to let us help you

  1. Did you use the 0.4.1 version? if not please use the current version
  2. Where did you use the npx pod-install? (please use this under your ios directory not your root directory)

@IlanZ93
Copy link
Author

IlanZ93 commented May 18, 2020

Oh ok it's my fault didnt noticed i was not using the 0.4.1 version. Thought that using "npm install @react-native-community/checkbox --save" will install the latest but i had the 0.3. Its ok now 👍

@IlanZ93 IlanZ93 closed this as completed May 18, 2020
@ZainaliSyed
Copy link

ZainaliSyed commented Jul 19, 2020

@nicholaslee119

Screenshot 2020-07-19 at 4 06 19 PM

I alway gets this error on ios

iphonesimulator/RNCCheckbox/libRNCCheckbox.a(BEMPathManager.o)
ld: 38 duplicate symbols for architecture x86_64

Installation
ios dir : npx pod-install
POD
pod 'BEMCheckBox'

"@react-native-community/checkbox": "^0.4.2",
"react-native": "0.62.2",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants