0.1.44 • Published 6 years ago
zaku-react-native v0.1.44
Zaku React Native
Requirements
- Node v8.4.0
- Yarn
- React Native
Installation
$ yarn add zaku-react-native
Usage
import { Component } from "react";
import { View } from "react-native";
import { ZakuTextInput } from "zaku-react-native";
class App extends Component {
const fields = {
type: 'number',
label: 'What is you favorite number?',
required: false,
default: '0',
placeholder: 'number',
minLength: '0',
maxLength: '5',
key: 'keysurveynumber'
};
const style = {
label : { color: 'red' },
element : { border: '1px' },
};
onChange = (value) => {
console.log(value);
}
render() {
return (
<View>
<ZakuTextInput fields={fields} style={style} onChange={onChange}/>
</View>
)
}
}
Components
ZakuTextInput
This is just React Native's TextInput component being wrapped to handle the CMS template fields
Props
Prop | Description | Required |
---|---|---|
style | The React Native Stylesheet object | Yes |
fields | CMS template object | Yes |
onChangeText | onChangeText function of TextInput | Yes |
ZakuPicker
This is just React Native's Picker component being wrapped to handle the CMS Select Template
Props
Prop | Description | Required |
---|---|---|
style | The React Native Stylesheet object | Yes |
fields | CMS template object | Yes |
onValueChange | onValueChange function of Picker | Yes |
mode | Picker mode | Yes |
Development
- Clone this repository
- Create a separate branch
- Push your changes to that branch
- In your local react-native app, execute
$ yarn add <repo-url>#<commit>
Run your react-native app
0.1.44
6 years ago
0.1.43
6 years ago
0.1.42
6 years ago
0.1.41
6 years ago
0.1.40
6 years ago
0.1.39
6 years ago
0.1.38
6 years ago
0.1.37
6 years ago
0.1.36
6 years ago
0.1.35
6 years ago
0.1.34
6 years ago
0.1.33
6 years ago
0.1.32
6 years ago
0.1.31
6 years ago
0.1.30
6 years ago
0.1.29
6 years ago
0.1.28
6 years ago
0.1.27
6 years ago
0.1.26
6 years ago
0.1.25
6 years ago
0.1.24
6 years ago
0.1.23
6 years ago
0.1.22
6 years ago
0.1.21
6 years ago
0.1.20
6 years ago
0.1.19
6 years ago
0.1.18
6 years ago
0.1.16
6 years ago
0.1.15
6 years ago
0.1.14
6 years ago
0.1.13
6 years ago
0.1.12
6 years ago
0.1.11
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1-1
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago