Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/mocks.ts → src/mocks.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import {
TouchableHighlight,
TouchableNativeFeedback,
Expand Down Expand Up @@ -30,9 +31,13 @@ const LongPressGestureHandler = View;
const PinchGestureHandler = View;
const RotationGestureHandler = View;
const FlingGestureHandler = View;
const RawButton = TouchableNativeFeedback;
const BaseButton = TouchableNativeFeedback;
const RectButton = TouchableNativeFeedback;
const RawButton = ({ enabled, ...rest }: any) => (
<TouchableNativeFeedback disabled={!enabled} {...rest}>
<View />
</TouchableNativeFeedback>
);
const BaseButton = RawButton;
const RectButton = RawButton;
const BorderlessButton = TouchableNativeFeedback;

export default {
Expand Down