iamkun / iamkun/dayjs

Format breaks on React Native

Open
#2,003 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Dayjs breaks react native when I call the format method
e.g:
```ts
import dayjs from "dayjs";

dayjs().format("ddd MMM D, YYYY")
```

I get this error:
```shell
undefined is not an object evaluating ('i[n]')
```

**Expected behavior**

Dayjs should format date e.g `Wed Jul 27, 2022`

**Information**
- Day.js Version [e.g. v1.11.4]
- OS: [iOS and Android]
- Browser [e.g. chrome 62]
- Time zone: [GMT+01:00 WAT]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.