Closed JohannesKlauss closed 2 years ago
When I bootstrap a fresh react-native app everything works fine. If I add nativebase afterwards this error throws when running run-ios:
/Users/johannesklauss/Documents/Github/SyraAudio/Platforms/App/node_modules/react-native/React/CoreModules/RCTActionSheetManager.mm:98:35: error: no member named 'cancelButtonTintColor' in 'JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions'
[RCTConvert UIColor:options.cancelButtonTintColor() ? @(*options.cancelButtonTintColor()) : nil];
~~~~~~~ ^
/Users/johannesklauss/Documents/Github/SyraAudio/Platforms/App/node_modules/react-native/React/CoreModules/RCTActionSheetManager.mm:98:72: error: no member named 'cancelButtonTintColor' in 'JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions'
[RCTConvert UIColor:options.cancelButtonTintColor() ? @(*options.cancelButtonTintColor()) : nil];
~~~~~~~ ^
2 errors generated.
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the SyraWaveApp editor. (in target 'SyraWaveApp' from project 'SyraWaveApp')
** BUILD FAILED **
The following build commands failed:
CompileC /Users/johannesklauss/Library/Developer/Xcode/DerivedData/SyraWaveApp-bxpeqkxdukdunoackzdwlhbawvtp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-CoreModules.build/Objects-normal/x86_64/RCTActionSheetManager.o /Users/johannesklauss/Documents/Github/SyraAudio/Platforms/App/node_modules/react-native/React/CoreModules/RCTActionSheetManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-CoreModules' from project 'Pods')
(1 failure)
Hi @JohannesKlauss, Please refer to this docs.
?? As I wrote, creating a new blank react native app without native base works fine. Not sure what I should refer to there.
Adding a new blank .swift File inside the ios main project fixes the issue, no idea why but it worked :)
Adding arm64 to the excluded architecture fixed for me for Mac m1 system
Description
When creating a project with the native base template, run-ios and run-android throws an error. I am unable to bootstrap a new project with it.
CodeSandbox/Snack link
There is no link needed
Steps to reproduce
run
npx react-native init MyApp --template react-native-template-native-base-typescript
run
cd MyApp
run
npx react-native run-ios
throws error
run
npx react-native run-android
throws error
NativeBase Version
3.2.x
Platform
Other Platform
No response
Additional Information
I am running this on a Macbbook Pro 2019 i9, with bigSur
run-ios Error log:
run-android Error log: