import React, { useRef } from 'react'; import { Button, ScrollView, StyleSheet, View } from 'react-native'; import ReactNativeForm, { defaultProps, FormContext } from 'rjsf-native'; import schema from './schema.json'; const uiSchema = { toggle: { 'ui:widget': 'radio', }, description: { 'ui:widget': 'textarea', }, password: { 'ui:widget': 'password', }, percentage: { 'ui:widget': 'range', }, multiselect: { 'ui:widget': 'checkboxes', }, }; export default () => { const form = useRef(null); return ( { console.log(e); } } schema={ schema } uiSchema={ uiSchema } onSubmit={ (f) => console.log(f.formData) }>