MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / setDialProps

Function setDialProps

src/components/Dial/RNDial.ts:29–47  ·  view source on GitHub ↗
(
  widget: RNDial,
  newProps: DialProps,
  oldProps: DialProps
)

Source from the content-addressed store, hash-verified

27}
28
29const setDialProps = (
30 widget: RNDial,
31 newProps: DialProps,
32 oldProps: DialProps
33) => {
34 const setter: DialProps = {
35 set notchesVisible(notchesVisible: boolean) {
36 widget.setNotchesVisible(notchesVisible);
37 },
38 set wrapping(wrapping: boolean) {
39 widget.setWrapping(wrapping);
40 },
41 set notchTarget(notchTarget: number) {
42 widget.setNotchTarget(notchTarget);
43 },
44 };
45 Object.assign(setter, newProps);
46 setViewProps(widget, newProps, oldProps);
47};
48
49/**
50 * @ignore

Callers 1

setPropsMethod · 0.85

Calls 1

setViewPropsFunction · 0.90

Tested by

no test coverage detected