react-native-ui-lib 7.40.1-snapshot.6840 → 7.40.1-snapshot.6844
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useEffect, useState, useRef } from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import { Colors, Spacings } from "../../style";
|
|
4
|
+
import { useThemeProps } from "../../hooks";
|
|
4
5
|
import View from "../view";
|
|
5
6
|
import Point from "./Point";
|
|
6
7
|
import Line from "./Line";
|
|
@@ -9,12 +10,13 @@ export { TimelineProps, PointProps as TimelinePointProps, LineProps as TimelineL
|
|
|
9
10
|
const CONTENT_CONTAINER_PADDINGS = Spacings.s2;
|
|
10
11
|
const ENTRY_POINT_HEIGHT = 2;
|
|
11
12
|
const Timeline = props => {
|
|
13
|
+
const themeProps = useThemeProps(props, 'Timeline');
|
|
12
14
|
const {
|
|
13
15
|
topLine,
|
|
14
16
|
bottomLine,
|
|
15
17
|
point,
|
|
16
18
|
children
|
|
17
|
-
} =
|
|
19
|
+
} = themeProps;
|
|
18
20
|
const [anchorMeasurements, setAnchorMeasurements] = useState();
|
|
19
21
|
const [contentContainerMeasurements, setContentContainerMeasurements] = useState();
|
|
20
22
|
const [pointMeasurements, setPointMeasurements] = useState();
|