Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* IMPORTANT: To use Moment make sure to install Moment Date Service
* npm i @ui-kitten/moment
*/
import React from 'react';
import { StyleSheet } from 'react-native';
import {
Datepicker,
Layout,
} from '@ui-kitten/components';
import { MomentDateService } from '@ui-kitten/moment';
const dateService = new MomentDateService();
export const DatepickerMomentShowcase = () => {
const [date, setDate] = React.useState(null);
return (
);
};
/**
* IMPORTANT: To use Moment make sure to install Moment Date Service
* npm i @ui-kitten/moment
*/
import React from 'react';
import { Calendar } from '@ui-kitten/components';
import { MomentDateService } from '@ui-kitten/moment';
import moment from 'moment';
const dateService = new MomentDateService();
export const CalendarMomentShowcase = () => {
const [date, setDate] = React.useState(moment());
return (
);
};