ReasonML /
BuckleScript bindings for
@react-native-community/react-native-checkbox
.
The module will be exposed as ReactNativeCheckbox
.
Version x.y.z of @reason-react-native/checkbox
is intended to be compatible
with version x.y.z of @react-native-community/react-native-checkbox
.
When
@react-native-community/react-native-checkbox
is properly installed & configured by following their installation instructions,
you can install the bindings:
npm install @reason-react-native/checkbox
# or
yarn add @reason-react-native/checkbox
@reason-react-native/checkbox
should be added to bs-dependencies
in your
bsconfig.json
. For example,
{
//...
"bs-dependencies": [
"reason-react",
"reason-react-native",
// ...
+ "@reason-react-native/checkbox"
],
//...
}
type checkBoxEvent =
ReactNative.Event.syntheticEvent({
.
"target": int,
"value": bool,
});
value
represents value of the checkbox as updated by the event.
Type to be used in ref
and with NativeMethods
, as with other components in
React Native bindings.
is an alias for React.Ref.t(Js.nullable(element))
.
All props are optional.
Value of the checkbox. When true
, checkbox will be checked. Default value is
false
.
When true
, user will not be able to toggle the checkbox. Default value is
false
.
Returns a native event.
Returns the new bool
value.
tintColors:
(~_true: ReactNative.Color.t=?, ~_false: ReactNative.Color.t=?, unit) => tintColors
Value for _true
will be used when the checkbox is checked, and value for
_false
will be used when it is not checked.
Refer to
@reason-react-native/react-native
documentation.
Check the changelog for more information about recent releases.
Read the contribution guidelines before contributing.
We want this community to be friendly and respectful to each other. Please read our full code of conduct so that you can understand what actions will and will not be tolerated.