Skip to content

fix: terminal warning due to missing type import / exports #317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 9, 2025
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/gold-insects-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@react-native-ama/forms': patch
---

Fixed babel transform warning on forms type import/exports (@babel/plugin-transform-typescript)
2 changes: 1 addition & 1 deletion examples/shared/src/screens/Form.screen.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Form, FormActions, TextInput } from '@react-native-ama/forms';
import { Form, type FormActions, TextInput } from '@react-native-ama/forms';
import { Text } from '@react-native-ama/react-native';
import * as React from 'react';
import { ScrollView, StyleSheet } from 'react-native';
Expand Down
8 changes: 4 additions & 4 deletions packages/forms/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import { isFocused } from '@react-native-ama/internal';

import {
FormActions,
type FormActions,
Form as FormProvider,
type FormProps,
} from './components/Form';
import { FormField, FormFieldProps } from './components/FormField';
import { FormSubmit, FormSubmitProps } from './components/FormSubmit';
import { FormSwitch, FormSwitchProps } from './components/FormSwitch';
import { FormField, type FormFieldProps } from './components/FormField';
import { FormSubmit, type FormSubmitProps } from './components/FormSubmit';
import { FormSwitch, type FormSwitchProps } from './components/FormSwitch';

type FormComponent = React.FunctionComponent<FormProps> & {
Submit: (props: FormSubmitProps) => JSX.Element;
Expand Down
Loading