0.1.23 • Published 2 years 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
2 years ago
0.1.22
2 years ago
0.1.21
2 years ago
0.1.20
2 years ago
0.1.19
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.15
2 years ago
0.1.13
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago