callstack / react-native-builder-bob

👷‍♂️ Simple set of CLIs to scaffold and build React Native libraries for different targets
https://callstack.github.io/react-native-builder-bob/
2.78k stars 184 forks source link

Error exposing view ios #545

Closed pablords closed 6 months ago

pablords commented 6 months ago

Description

Whenever I change the file created in the example I get the error: Invariant Violation: requireNativeComponent: "ButtonView" was not found in the UIManager. After the change I run pod install, clean builder folder, but nothing works. I always change it directly through xcode in the pod, which is reflected in the ios folder.

Screenshot 2024-04-03 at 10 13 46 Screenshot 2024-04-03 at 10 14 09 Screenshot 2024-04-03 at 10 14 44 Screenshot 2024-04-03 at 10 15 12

Packages

Selected options

N/A

Link to repro

https://github.com/pablords/mistica-react-native

Environment

System: OS: macOS 14.4.1 CPU: (8) arm64 Apple M1 Memory: 87.98 MB / 8.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 18.17.1 path: ~/.nvm/versions/node/v18.17.1/bin/node Yarn: version: 3.6.1 path: ~/.nvm/versions/node/v18.17.1/bin/yarn npm: version: 9.6.7 path: ~/.nvm/versions/node/v18.17.1/bin/npm Watchman: Not Found Managers: CocoaPods: version: 1.15.2 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms:

pablords commented 6 months ago

The problem is that on IOS it uses a naming convention. For example, if I create a ButtonManager class, in the react-native context the name must be Button.