Package react4j
Class React
java.lang.Object
react4j.React
Native interface to native runtime for creating views.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Return true if views should have human readable names specified.static boolean
Return true if invariants will be checked.static boolean
Return true if the input keys should be minimized.static boolean
Return true if react state should be used to store debug data.static boolean
Return true if the input value should be validated when initially set or when changed.
-
Method Details
-
enableViewNames
Return true if views should have human readable names specified. Useful if you want to interact via DevTools or other tool chains.- Returns:
- true to enable human readable names for views.
-
shouldMinimizeInputKeys
Return true if the input keys should be minimized. This will significantly reduce the size of the compiled output but will make inspecting the inputs in DevTools difficult if not impossible.- Returns:
- true to minimize input keys.
-
shouldValidateInputValues
Return true if the input value should be validated when initially set or when changed.- Returns:
- true to validate input values.
-
shouldStoreDebugDataAsState
Return true if react state should be used to store debug data. Useful if you want to inspect the debug data via DevTools. This feature is resource intensive and should not be enabled in production.- Returns:
- true if react state should be used to store debug data.
-
shouldCheckInvariants
Return true if invariants will be checked.- Returns:
- true if invariants will be checked.
-