react-native-date-picker icon indicating copy to clipboard operation
react-native-date-picker copied to clipboard

[Bug]: No type named 'string' in namespace 'std' - React Native 81.0

Open Gautham495 opened this issue 4 months ago • 7 comments

Describe the bug

I am getting this error when I am trying to build the app

@henninghall

Image

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


Gautham495 avatar Aug 12 '25 19:08 Gautham495

Image

I am getting this error as well

@henninghall

Gautham495 avatar Aug 12 '25 20:08 Gautham495

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

Gautham495 avatar Aug 18 '25 19:08 Gautham495

May be, we should use new arch for this to work.

I used old arch.

Gautham495 avatar Aug 19 '25 05:08 Gautham495

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.

Gautham495 avatar Aug 22 '25 17:08 Gautham495

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
 
  

rp20 avatar Aug 25 '25 13:08 rp20

I am also getting this

mozzius avatar Aug 28 '25 22:08 mozzius

I did a PR.

https://github.com/henninghall/react-native-date-picker/pull/941

Sosotess93 avatar Sep 04 '25 18:09 Sosotess93