Answers for "jest simulate toggle switch rn"

0

jest simulate toggle switch rn

const Switch = wrapper.find('[testID="switch"]');

Switch.simulate('valueChange');
Posted by: Guest on November-23-2020
0

jest simulate toggle switch rn

fireEvent(getByTestId('switch-element-id'), 'valueChange', true || false);
Posted by: Guest on November-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language