Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS is crashing #759

Closed
AndonMitev opened this issue May 16, 2023 · 3 comments
Closed

IOS is crashing #759

AndonMitev opened this issue May 16, 2023 · 3 comments

Comments

@AndonMitev
Copy link

AndonMitev commented May 16, 2023

Stack:

"@react-native-community/datetimepicker": "6.7.3",
"react-native": "0.71.7"
"expo": "~48.0.15",

Application is just crashing on iOS simulator and physical. No problem with android so far. Any suggestions what could resolve the issue

And this is the code that i'm using:

<HStack alignItems="center" justifyContent="space-between" bgColor="muted.50" px={2} height={50} borderRadius={12}>
    <Text color="textdark.tertiary" fontSize={12}>
      Date of birth*
    </Text>
    <RNDatePicker
      value={value ? new Date(parseInt(value)) : new Date()}
      onChange={(event) => {
        if (event.type === 'dismissed') {
          return;
        }
        const timestampAsStr = event.nativeEvent.timestamp?.toString() ?? '';

        setValue('dateOfBirthTS', timestampAsStr);
      }}
    />
  </HStack>
@RyanGst
Copy link

RyanGst commented May 16, 2023

i'm having a similar issue, preventing re-renders on the component (in my case, memoizing the value prop) helped. I haven't fix this issue yet.

two things may help:

1 - datetimepicker version should be at least 7.0.1 to be used with RN 0.70+
2 - Base options typing was updated on e3c05a8

edit:
Take a look at your align styles

@mduc-dev
Copy link

mduc-dev commented May 26, 2023

i have some issue here is
Invariant Violation: requireNativeComponent: "RNDateTimePicker" was not found in the UIManager.
"@react-native-community/datetimepicker": "^7.1.0",
"react-native": "0.71.7",
i found a few similar cases but everything is not working, trying to link in pod file or remove Pods folder..

@github-actions
Copy link

👋 @AndonMitev, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template. As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with the issue.
The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug.
Please create a new issue with this and we'll be happy to review it!

@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants