Doesn't work on iOs
ivy-mihai opened this issue · comments
Bug report
Summary
The package doesn't work on iOs. The main example from Git is working perfectly on Android, but on iOS I receie this error"View config not found for name RNC Segmented Control".
Environment info
I am using Expo.
react-native info
output:
# paste it here
Library version: x.x.x
Steps to reproduce
- cut example code from git
- copy example code in the component where I want to use the component
- I am trying to open the screen that contains the segmenet-control component
- is working perfectly on Android, but on iOS I see the red screen with this error message "View config not found for name RNC Segmented Control".
Describe what you expected to happen:
- to see the segment-control component behaving the same on android and iOs
Reproducible sample code
I've created a Snack here. Try to open the app using an iOs phone. https://snack.expo.io/@ivy.mihai/94f0cf
Looks like your forgot to do a pod install in the ios directory
@ivy-mihai
Have you tried running npx pod-install
in your project? for iOS modules, installing its dependency via cocoapods is required.
@ivy-mihai
Have you tried runningnpx pod-install
in your project? for iOS modules, installing its dependency via cocoapods is required.
Looks like your forgot to do a pod install in the ios directory
I am using Windows and Expo. I cannot use npx pod-install in my project, but I've tried anyway. Here is the answer: CocoaPods is only supported on darwin machines.
@ivy-mihai thanks for the reply! And sorry, i missed the part about expo.
Could you tell me which expo sdk version you're using?
This package will only work on iOS for expo sdk 38 and beyond.
@ivy-mihai thanks for the reply! And sorry, i missed the part about expo.
Could you tell me which expo sdk version you're using?
This package will only work on iOS for expo sdk 38 and beyond.
Not a problem! Thank you for your answer. I use SDK 38.
L.E: I've tried again and I've noticed that the expo snack was set to use SDK 36. I've tried with expo SDK 38 and it worked on iOS. I will try on my phone also, but I think it should work also. Thanks again!