Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jest simulate toggle switch rn

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

Switch.simulate('valueChange');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jest #simulate #toggle #switch #rn
ADD COMMENT
Topic
Name
6+2 =