James Shakespeare

Results 5 comments of James Shakespeare

I believe you have to use this file to create your own mock in your Jest environment setup, like this: ``` jest.mock('react-native-safe-area-context', () => require('react-native-safe-area-context/jest/mock').default); ``` This way the library...

Also agreed. Given how easy it is now to include WP as a submodule, it would be great to do the same with this. One-click WP project deployment ftw

Is there any update on this? I am having a similar problem. I can get the animation to run, but if the parent component's state changes, the Anime component disappears...

In my case I'm just using it to make an HTML attribute value from a string, but there are many cases where we use slug generation on the front-end, including...

With all due respect, that's besides the point. Nowadays npm packages are increasingly being used isomorphically, especially with platforms like Meteor. For a precedent, see the `node-slug` npm package which...