react-native-mock icon indicating copy to clipboard operation
react-native-mock copied to clipboard

A fully mocked and test-friendly version of react native (maintainers wanted)

Results 38 react-native-mock issues
Sort by recently updated
recently updated
newest added

[React Native has recently added support for percentage widths](https://facebook.github.io/react-native/releases/0.44/docs/layout-props.html#width). Tests now fail props validation if a `react-native-mock` component is passed a percentage width string instead of a number: ``` Error:...

Bug
help wanted
Compatability

I have a suite of integration tests that use `axios` - which in turn uses the newly mocked out `XMLHttpRequest`. These calls don't return anymore. I do stub out the...

help wanted
Mock

The AnimatedImplementation should export delay as it is a supported API of Animated.

help wanted
Mock

As you can read here https://github.com/airbnb/enzyme/issues/470, it won't work. And by the looks of https://github.com/lelandrichardson/react-native-mock/blob/master/src/components/View.js#L284 it is expected. My question is: Is it part of your ideal for this library...

help wanted
Future

Hi, I'm trying to test component which has Animated.View, but when I call the enzyme's mount() I'm getting an error **TypeError: Cannot read property '__getValue' of undefined** the full stack...

Bug
help wanted

Hi Leland, We've crossed some tweets beforehand, but as usual Twitter character limits don't help. Thanks for offering your help, really appreciated. The app we are building is using mostly...

I'm not sure if it's expected or not. I created a repro here: https://github.com/jnak/enzyme-rn-ref-repro Very cool project btw!

More information needed

The `Path` class in the ART library is only partially mocked out. I'd like to mock out the rest of the methods for my own selfish reasons. I'll have a...

PR Submitted
Mock

Thanks for all of the work on this! After spending a lot of time struggling with Jest and the react-native docs (v 0.27.0) for setting up unit tests, I decided...

question
Future
Discussion

``` js create: (obj) => { return Object.keys(obj).reduce((res, key, index) => { res[key] = index; return res; }, {}) } ```

Bug
help wanted
Mock