Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed Mar 17, 2024
1 parent 3b230e2 commit 0c0c6b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import type { Meta, StoryObj } from '@storybook/react';
import { action } from '@storybook/addon-actions';

import { ActionButton } from './Actions';

const meta = {
title: 'ActionButton',
component: ActionButton,
argTypes: {
onPress: { action: 'pressed' },
},
args: {
text: 'Press me!',
onPress: action('pressed'),
},
parameters: {
notes: `
Expand Down
3 changes: 1 addition & 2 deletions examples/expo-example/components/ActionExample/Actions.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import { TouchableOpacity, Text, StyleSheet } from 'react-native';

interface ActionButtonProps {
onPress: () => void;
onPress?: () => void;
text: string;
}

Expand Down

0 comments on commit 0c0c6b0

Please sign in to comment.