Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mariusmonkam/date-and-time

Add date and time to your react-native component
https://github.com/mariusmonkam/date-and-time

Last synced: 1 day ago
JSON representation

Add date and time to your react-native component

Awesome Lists containing this project

README

        

# react-native-date-and-time

## Usage

```javascript
import * as dateMethods from "./dateMethods";
// TODO: What to do with the module?
const App = () => {
console.log(dateMethods.getYear());
console.log(dateMethods.getMonth());
console.log(dateMethods.getDay());
console.log(dateMethods.getTime());
console.log(dateMethods.getDateTime());
return (

{dateMethods.getYear()}

{dateMethods.getMonth()}
{dateMethods.getDay()}
{dateMethods.getTime()}
{dateMethods.getDateTime()}

);
};
```