0.1.23 • Published 9 months ago
rezg-react-native-custom-form-details v0.1.23
rezg-react-native-form-details
common form with custom inputs
Installation
npm install rezg-react-native-custom-form-details
Usage
import { FormDetails } from "rezg-react-native-custom-form-details";
// ...
import * as React from "react";
import { StyleSheet } from "react-native";
import { FormDetails } from "rezg-react-native-custom-form-details";
import dummyInputs from "./InputFields/DummyInputFields";
export default function App() {
const [nextButtonVisibility, setNextButtonVisibility] = React.useState(true); //mandatory*
const getInputDataSet = (data: any) => {
console.log(data);
};
const StepperNextBtnDisabled = (disableStatus: boolean) => {
setNextButtonVisibility(disableStatus);
};
return (
<FormDetails
placeholderStyle={styles.placeholderStyle}
inputFields={dummyInputs}
tittle="Form Header"
tittleStyle={styles.tittleStyle}
getInputDataSet={getInputDataSet} //get input values from the form
StepperNextBtnDisabled={StepperNextBtnDisabled} //mandatory*
/>
);
}
const styles = StyleSheet.create({
placeholderStyle: {
color: "gray",
backgroundColor: "white",
},
tittleStyle: {
fontSize: 30,
letterSpacing: 0.5,
fontWeight: "bold",
color: "black",
left: 10,
},
});
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
0.1.23
9 months ago
0.1.22
9 months ago
0.1.21
9 months ago
0.1.20
9 months ago
0.1.19
9 months ago
0.1.18
9 months ago
0.1.17
9 months ago
0.1.16
9 months ago
0.1.15
10 months ago
0.1.13
10 months ago
0.1.11
10 months ago
0.1.10
10 months ago
0.1.9
10 months ago
0.1.8
10 months ago
0.1.7
10 months ago
0.1.6
10 months ago
0.1.5
10 months ago
0.1.4
10 months ago
0.1.3
10 months ago
0.1.2
10 months ago
0.1.1
10 months ago
0.1.0
10 months ago