react-native-mock-tmp-build
Version:
A fully mocked and test-friendly version of react native
30 lines (24 loc) • 507 B
JavaScript
const ScrollViewManager = {
getContentSize(reactTag, callback) {
Promise.resolve().then(() => callback({
width: 20,
height: 20,
}));
},
calculateChildFrames(reactTag, callback) {
Promise.resolve().then(() => callback({
// TODO(lmr):
}));
},
endRefreshing(reactTag) {
},
scrollTo(reactTag, offset, animated) {
},
zoomToRect(reactTag, rect, animated) {
},
DecelerationRate: {
normal: 0,
fast: 1,
},
};
module.exports = ScrollViewManager;