How to use the hyperflow.Hf.isEmpty function in hyperflow

To help you get started, we’ve selected a few hyperflow examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tuantle / hypertoxin / src / fields / interfaces / number-field-interface.js View on Github external
onEndEditing = {(event) => {
                        const text = !Hf.isEmpty(event.nativeEvent.text) ? event.nativeEvent.text : `0`;
                        if (monetary && text.charAt(0) === `$`) {
                            if (event.nativeEvent.text.length === 1) {
                                onDoneEdit(0);
                            } else {
                                onDoneEdit(parseFloat(text.substring(1)));
                            }
                        } else {
                            onDoneEdit(parseFloat(text));
                        }
                    }}
                    onFocus = { onFocus }
github tuantle / hypertoxin / src / applets / fields / interfaces / credit-card-field-interface.android.js View on Github external
onEndEditing = {(event) => {
                        if (!Hf.isEmpty(event.nativeEvent.text)) {
                            const [
                                fieldTextInput
                            ] = component.lookupComponentRefs(
                                `fieldTextInput`
                            );
                            fieldTextInput.setNativeProps({
                                text: `${parseInt(event.nativeEvent.text, 10)}`
                            });
                        }
                    }}
                    onSubmitEditing = {(event) => {
github tuantle / hypertoxin / src / applets / fields / interfaces / phone-number-field-interface.ios.js View on Github external
onEndEditing = {(event) => {
                        if (!Hf.isEmpty(event.nativeEvent.text)) {
                            const [
                                fieldTextInput
                            ] = component.lookupComponentRefs(
                                `fieldTextInput`
                            );
                            fieldTextInput.setNativeProps({
                                text: `${parseInt(event.nativeEvent.text, 10)}`
                            });
                        }
                    }}
                    onSubmitEditing = {(event) => {
github tuantle / hypertoxin / src / applets / fields / interfaces / credit-card-field-interface.ios.js View on Github external
onEndEditing = {(event) => {
                        if (!Hf.isEmpty(event.nativeEvent.text)) {
                            const [
                                fieldTextInput
                            ] = component.lookupComponentRefs(
                                `fieldTextInput`
                            );
                            fieldTextInput.setNativeProps({
                                text: `${parseInt(event.nativeEvent.text, 10)}`
                            });
                        }
                    }}
                    onSubmitEditing = {(event) => {
github tuantle / hypertoxin / src / applets / fields / interfaces / phone-number-field-interface.android.js View on Github external
onEndEditing = {(event) => {
                        if (!Hf.isEmpty(event.nativeEvent.text)) {
                            const [
                                fieldTextInput
                            ] = component.lookupComponentRefs(
                                `fieldTextInput`
                            );
                            fieldTextInput.setNativeProps({
                                text: `${parseInt(event.nativeEvent.text, 10)}`
                            });
                        }
                    }}
                    onSubmitEditing = {(event) => {

hyperflow

A javascript state flow and mutation management toolkit & library for developing universal app.

MIT
Latest version published 6 years ago

Package Health Score

42 / 100
Full package analysis