Skip to content
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/add-rhf-plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rozenite/rhf-plugin': minor
---

Add React Hook Form plugin. Inspect form state, field values, errors, dirty/touched fields, and validation status in real time from React Native DevTools.
2 changes: 2 additions & 0 deletions apps/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@rozenite/overlay-plugin": "workspace:*",
"@rozenite/performance-monitor-plugin": "workspace:*",
"@rozenite/plugin-bridge": "workspace:*",
"@rozenite/rhf-plugin": "workspace:*",
"@rozenite/react-navigation-plugin": "workspace:*",
"@rozenite/redux-devtools-plugin": "workspace:*",
"@rozenite/require-profiler-plugin": "workspace:*",
Expand Down Expand Up @@ -75,6 +76,7 @@
"react-native-svg-web": "~1.0.9",
"react-native-web": "~0.21.0",
"react-native-worklets": "0.7.2",
"react-hook-form": "^7.54.2",
"react-redux": "^9.2.0",
"zustand": "^5.0.6"
},
Expand Down
2 changes: 2 additions & 0 deletions apps/playground/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { ReduxTestScreen } from './screens/ReduxTestScreen';
import { RequestBodyTestScreen } from './screens/RequestBodyTestScreen';
import { RequireProfilerTestScreen } from './screens/RequireProfilerTestScreen';
import { FileSystemTestScreen } from './screens/FileSystemTestScreen';
import { ReactHookFormPluginScreen } from './screens/ReactHookFormPluginScreen';
import { StoragePluginScreen } from './screens/StoragePluginScreen';
import { storagePluginAdapters } from './storage-plugin-adapters';
import { sqlitePluginAdapters } from './sqlite-plugin-databases';
Expand Down Expand Up @@ -77,6 +78,7 @@ const Wrapper = () => {
>
<Stack.Screen name="Landing" component={LandingScreen} />
<Stack.Screen name="ControlsPlugin" component={ControlsPluginScreen} />
<Stack.Screen name="ReactHookFormPlugin" component={ReactHookFormPluginScreen} />
<Stack.Screen name="StoragePlugin" component={StoragePluginScreen} />
<Stack.Screen name="NetworkTest" component={NetworkTestScreen} />
<Stack.Screen name="RequestBodyTest" component={RequestBodyTestScreen} />
Expand Down
1 change: 1 addition & 0 deletions apps/playground/src/app/navigation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { NativeStackNavigationProp } from '@react-navigation/native-stack';
export type RootStackParamList = {
Landing: undefined;
ControlsPlugin: undefined;
ReactHookFormPlugin: undefined;
StoragePlugin: undefined;
NetworkTest: undefined;
RequestBodyTest: undefined;
Expand Down
7 changes: 7 additions & 0 deletions apps/playground/src/app/screens/LandingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

export const LandingScreen = () => {
const navigation = useNavigation();
const insets = useSafeAreaInsets();

Check warning on line 16 in apps/playground/src/app/screens/LandingScreen.tsx

View workflow job for this annotation

GitHub Actions / Validate

'insets' is assigned a value but never used

return (
<View style={styles.container}>
Expand Down Expand Up @@ -44,6 +44,13 @@
<Text style={styles.buttonText}>Storage Plugin</Text>
</TouchableOpacity>

<TouchableOpacity
style={styles.navigationButton}
onPress={() => navigation.navigate('ReactHookFormPlugin' as never)}
>
<Text style={styles.buttonText}>React Hook Form</Text>
</TouchableOpacity>

<TouchableOpacity
style={styles.navigationButton}
onPress={() => navigation.navigate('NetworkTest' as never)}
Expand Down
Loading
Loading