react-live-clock
Advanced tools
Comparing version 6.1.14 to 6.1.15
# Changelog | ||
## [6.1.15] | ||
Bump word-wrap from 1.2.3 to 1.2.4 #273 | ||
Bump react-router-dom from 6.13.0 to 6.15.0 #279 | ||
Bump eslint from 8.42.0 to 8.47.0 #280 | ||
Bump eslint-plugin-react from 7.32.2 to 7.33.2 #281 | ||
Fix onChange event. Date param was missing in the index.d.ts file. #282 | ||
## [6.1.14] | ||
@@ -4,0 +11,0 @@ Bump eslint from 8.35.0 to 8.42.0 (#253, #256, #257, #263) |
@@ -12,3 +12,3 @@ import React, { Component } from "react"; | ||
readonly locale?: string; | ||
readonly onChange?: () => void; | ||
readonly onChange?: (date: number) => void; | ||
readonly onReady?: () => void; | ||
@@ -15,0 +15,0 @@ readonly style?: React.CSSProperties; |
{ | ||
"name": "react-live-clock", | ||
"version": "6.1.14", | ||
"version": "6.1.15", | ||
"description": "React Live Clock", | ||
@@ -47,4 +47,4 @@ "main": "lib/index.js", | ||
"cf-react-component-template": "0.1.8", | ||
"eslint": "8.42.0", | ||
"eslint-plugin-react": "7.32.2", | ||
"eslint": "8.47.0", | ||
"eslint-plugin-react": "7.33.2", | ||
"prop-types": "15.8.1", | ||
@@ -55,5 +55,5 @@ "react": "^16.8 || ^17 || ^18", | ||
"react-moment": "1.1.3", | ||
"react-router-dom": "6.13.0", | ||
"react-router-dom": "6.15.0", | ||
"react-syntax-highlighter": "15.5.0" | ||
} | ||
} |
@@ -44,3 +44,22 @@ # react-live-clock [![npm](https://img.shields.io/npm/v/react-live-clock.svg?style=flat-square)](https://www.npmjs.com/package/react-live-clock) | ||
### React Native | ||
React Native requires that you wrap text in a ```<Text>``` like this: | ||
```JSX | ||
import { Text, View } from "react-native"; | ||
import Clock from "react-live-clock"; | ||
export default function ClockPage() { | ||
return ( | ||
<View> | ||
<Text>Clock page</Text> | ||
<Clock element={Text} /> | ||
</View> | ||
); | ||
} | ||
``` | ||
If you don't you will get the error ```Invariant Violation: Text strings must be rendered within a <Text> component.``` | ||
### Formatting | ||
@@ -47,0 +66,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9881878
122