How to use the cavy.hook function in cavy

To help you get started, we’ve selected a few cavy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pixielabs / cavy / sample-app / CavyDirectory / app / ActionBar.js View on Github external
}

  render() {
    const TestableActionButton = wrap(ActionButton);

    return (
      
    );
  }
}

export default hook(ActionBar);

const styles = StyleSheet.create({
  container: {
    flexDirection: 'row',
    justifyContent: 'space-around',
    backgroundColor: '#FAFAFF',
    paddingVertical: 8
  }
});
github pixielabs / cavy / sample-app / CavyDirectory / app / SearchBar.js View on Github external
render() {
    return (
      
    )
  }
}

export default hook(SearchBar);

const styles = StyleSheet.create({
  container: {
    flex: 1,
    padding: 8,
    flexDirection: 'row',
    alignItems: 'center',
    backgroundColor: '#C9C9CE',
  },
  input: {
    height: 30,
    flex: 1,
    paddingHorizontal: 8,
    backgroundColor: '#FFFFFF',
    borderRadius: 4,
  },

cavy

An integration test framework for React Native.

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis