( widget: RNDial, newProps: DialProps, oldProps: DialProps )
| 27 | } |
| 28 | |
| 29 | const 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 |
no test coverage detected