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

Expected a type error in XCode [blinkid-custom-react-native-5.7.0] #163

Open
OlyaKorabliova opened this issue Sep 22, 2020 · 3 comments
Open

Comments

@OlyaKorabliova
Copy link

I'm having an issue with the latest available custom SDK for RN (BlinkID Custom React Native 5.7.0) - Expected a type
I use "react-native": "^0.63.2" and I followed all the installation steps from README.md
Any suggestions on how to fix it will be appreciated. Thanks in advance!

Screenshot 2020-09-22 at 17 52 07
image

@mparadina
Copy link
Contributor

Hi @OlyaKorabliova

Can you please tell me if this issue still persists with the latest version (5.8) of the Custom SDK?

Also, did you try running the demo script and seeing if the issue is there?

Regards,
Milan

@suryapermana92work
Copy link

same issue :(
"react-native": "0.64.0", blinkid-custom-react-native-5.11.0

@mparadina
Copy link
Contributor

Hi @suryapermana92work

Since this is the Custom SDK, did you add the following line to your Podfile:
pod 'blinkid-custom-react-native', :path => '../node_modules/blinkid-custom-react-native'

This line needs to be added since you're obtaining the resources from the Custom SDK which is different from the SDK obtained from GitHub.

Here is what the Podfile needs to look like (this is for the Sample application you can get when running the script ./initReactNativeSampleApp.sh within the Custom SDK folder):

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '10.0'

target 'Sample' do
  config = use_native_modules!

pod 'blinkid-custom-react-native', :path => '../node_modules/blinkid-custom-react-native'
  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )

  target 'SampleTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
    
   use_flipper!()
  post_install do |installer|
    flipper_post_install(installer)
  end
end

After installing the Podfile again, try to build and run the .xcworkspace.

Let me know if this was helpful.

Regards,
Milan

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