diff --git a/.changeset/gold-insects-press.md b/.changeset/gold-insects-press.md new file mode 100644 index 00000000..95d3db4e --- /dev/null +++ b/.changeset/gold-insects-press.md @@ -0,0 +1,5 @@ +--- +'@react-native-ama/forms': patch +--- + +Fixed babel transform warning on forms type import/exports (@babel/plugin-transform-typescript) diff --git a/examples/shared/src/screens/Form.screen.tsx b/examples/shared/src/screens/Form.screen.tsx index 55ab7fb5..5eb312d0 100644 --- a/examples/shared/src/screens/Form.screen.tsx +++ b/examples/shared/src/screens/Form.screen.tsx @@ -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'; diff --git a/packages/forms/src/index.ts b/packages/forms/src/index.ts index 3e52b8f6..a202544a 100644 --- a/packages/forms/src/index.ts +++ b/packages/forms/src/index.ts @@ -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 & { Submit: (props: FormSubmitProps) => JSX.Element;