react-native-paper-dates icon indicating copy to clipboard operation
react-native-paper-dates copied to clipboard

undefined is not registered, key: save, after update to version "^0.5.1"

Open amin79 opened this issue 4 years ago • 4 comments

I get this error after upgrade:

[react-native-paper-dates] undefined is not registered, key: save at node_modules/react-native-paper-dates/src/Date/DayNames.tsx:29:54 in React.useMemo$argument_0

amin79 avatar Oct 22 '21 14:10 amin79

See release notes, we did a breaking change, you have to register the language since we'll add more error messages in the future etc. Please add a PR if your language is not en/nl

RichardLindhout avatar Oct 25 '21 09:10 RichardLindhout

Yes I realised that and fixed it. Thanks. One more problem is that when I set the saveLabel to null, it set it to 'Save' initially. But I need to remove the save bottom. I set a space (' ') for that and it does not show the label, but is clickable.

amin79 avatar Oct 25 '21 09:10 amin79

Why do you not want the save label?

RichardLindhout avatar Oct 25 '21 20:10 RichardLindhout

When the user select a date, it would be close automatically. Then there us no need to have the save button. Additionally, they can not even click on it. Because after selecting a date, the modal would be close.

amin79 avatar Oct 25 '21 21:10 amin79