[Bug]: No type named 'string' in namespace 'std' - React Native 81.0
Describe the bug
I am getting this error when I am trying to build the app
@henninghall
Expected behavior
To build properly
To Reproduce
Install the latest version of react native project and run it.
Operating System
- [ ] Android
- [x] iOS
React Native Version
0.81.0
Expo Version (if applicable)
No response
react-native-date-picker version
5.0.13
React Native Architecture
- [x] Old Architecture (Paper)
- [ ] New Architecture (Fabric)
Relevant log output
I am getting this error as well
@henninghall
This library has build issues for React Native 81.0.
I had to revert back to older React Native version, to get the build working.
@henninghall
May be, we should use new arch for this to work.
I used old arch.
This issue went away with new arch enabled 81.0 project.
I am keeping this issue open, so it will be useful for other devs.
May be, we should use new arch for this to work.
I used old arch.
I am also using the old arch on iOS, this patch fixes the build error:
index 480746e..0d7dcad 100644
--- a/node_modules/react-native-date-picker/ios/RNDatePicker.h
+++ b/node_modules/react-native-date-picker/ios/RNDatePicker.h
@@ -16,6 +16,8 @@ NS_ASSUME_NONNULL_END
#import "DatePicker.h"
#import <UIKit/UIKit.h>
+#include <string>
+
@interface RNDatePicker : DatePicker
I am also getting this
I did a PR.
https://github.com/henninghall/react-native-date-picker/pull/941