jest simulate toggle switch react native code example
Example: jest simulate toggle switch react native
fireEvent(getByTestId('switch-element-id'), 'valueChange', true || false);
fireEvent(getByTestId('switch-element-id'), 'valueChange', true || false);