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

I have an error with all my Views components ``` FAIL __tests__/components/Login.spec.js ● Test suite failed to run TypeError: Cannot read property 'number' of undefined at Object. (node_modules/react-native-mock/build/propTypes/LayoutPropTypes.js:21:37) at Object....

Bug

Went through and fixed all the deprecated API's. - PropTypes imported from 'prop-types' - createClass to createReactClass - Updated dependencies Fixes #139 It's probably not the cleanest update and I...

Unfortunately, due to a variety of reasons, I find myself unable to commit time to maintaining `react-native-mock` with the effort required it deserves. (The commit graph clearly shows it's been...

help wanted
Future
Discussion

Hey, not sure if this is the best place to ask but i just started using `react-native-mock` and I keep getting this error which I am not sure how to...

Bug

Change all `View.PropTypes` to `ViewPropTypes` and add `import {ViewPropTypes} from 'react-native';` Release builds fail due to this.

Even with the help of https://github.com/azarashd/react-native-mock, it can't work in RN 0.59. Based on @azarashd's work, I did two more things in [my fork](https://github.com/chinesedfan/react-native-mock) to solve. - Unless you really...

Animated Loop is not defined: ``` Error: Uncaught [TypeError: _reactNative.Animated.loop is not a function] ``` Looking at the API these functions are not mocked: subtract divide loop modulo diffClamp delay...

On: https://github.com/RealOrangeOne/react-native-mock/blob/4c33a4de618b7a3c4cb8922884ae5dd7cc4218bf/src/api/Animated/AnimatedImplementation.js#L1162 Results in: ``` Error: Uncaught [TypeError: _reactNative.Animated.delay is not a function] ```

delay is not exported

After adding and importing this lib, testing with jest shows errors for all test suites: ``` ● Test suite failed to run Cannot find module 'react/lib/ReactComponentTreeHook' from 'ReactDebugTool.js' at Resolver.resolveModule...

Bug
help wanted