wrapper.find(Switch).at(0).simulate('onValueChange',true);
expect(wrapper.state('switchStatus')).to.equal(true);
Fails the test.
Just drop the "on" to find the event name, like so:
wrapper.find(Switch).at(0).simulate('valueChange')
You'd need a react native adapter to use enzyme with React Native.
Closing this in favor of #1436.
Most helpful comment
Just drop the "on" to find the event name, like so: