Skip to content

Latest commit

 

History

History
41 lines (37 loc) · 963 Bytes

File metadata and controls

41 lines (37 loc) · 963 Bytes


import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

Dates (Date)

Dates are date and time instances that can be passed between JS and native. Under the hood, conversions take place using milliseconds, so it's essentially a wrapper around numbers.

```ts interface Image extends HybridObject { getCreationDate(): Date } ``` ```swift class HybridImage: HybridImageSpec { func getCreationDate() -> Date } ``` ```kotlin class HybridImage: HybridImageSpec() { fun getCreationDate(): Instant } ``` ```cpp class HybridImage: public HybridImageSpec { std::chrono::system_clock::time_point getCreationDate(); } ```