showing results for - "jest simulate toggle switch rn"
Alice
11 Oct 2018
1const Switch = wrapper.find('[testID="switch"]');
2
3Switch.simulate('valueChange');
Farah
29 May 2020
1fireEvent(getByTestId('switch-element-id'), 'valueChange', true || false);