Open kevinhylant opened 8 years ago
I have been thinking on a nice way of implementing these fixes. I think the best way of doing it would be in the same way we override nodes require with react-native
. We should be able to do the same for any other library.
I am hoping to start work on something like this soon, once a few more PRs are released. Hoping to bring it out inline with react-native 0.30 so we can match up the version numbers. Stay tuned for a fix!
Hey there! Thanks for all your hard work mocking this all out.
In my app I'm using
buildStyleInterpolator
which is provided by React Native and made available viaimport buildStyleInterpolator from 'buildStyleInterpolator'
... which I feel is a bit strange in the first place as most library utilities likeDimensions
are imported likeimport {Utility} from 'react-native'
.Regardless, it looks like
react-native-mock
is not mocking outbuildStyleInterpolator
as well as various other utility functions that are exported fromreact-native/Libraries/Utilities/**
(screenshot below from my node_modules).Please help me out? (I'll take a look now to see if I can't create a PR myself)