mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-03-28 22:46:40 +08:00
re #148, re #137, re #106, re #89, re #16, re #6 * build(rollup): native bundle * feat(native): stylized components * build(typescript): react native check * feat(typing): improves * build(tsconfig): by environment * test(web native): setup * test(native): support * docs(readme): native documentation
19 lines
359 B
JavaScript
19 lines
359 B
JavaScript
jest.mock('Animated', () => {
|
|
return {
|
|
Value: () => {
|
|
return {
|
|
addListener: callback => callback({ value: 0 }),
|
|
setValue: () => {},
|
|
}
|
|
},
|
|
timing: (value, config) => {
|
|
return {
|
|
start: callback => {
|
|
value.setValue(config.toValue)
|
|
callback && callback()
|
|
},
|
|
}
|
|
},
|
|
}
|
|
})
|