You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the TextField component on Android builds makes the app crash when opening a screen where this component is being rendered. If I change it to RN TextInput, it works.
Error message:
Warning: Error: Exception in HostFunction: TypeError: expected dynamic type `int/double/bool/string', but had type `object'
This error is located at:
in AndroidTextInput (created by InternalTextInput)
in InternalTextInput (created by TextInput)
in TextInput (created by Incubator.TextField)
in Incubator.TextField (created by TextField)
in RCTView (created by View)
in View
in View (created by TextField)
in RCTView (created by View)
in View
in View (created by TextField)
in RCTView (created by View)
in View
in View (created by TextField)
in TextField (created by TextField)
in forwardRef (created by TextField)
in TextField (created by TextField)
in forwardRef (created by Home)
in RCTView (created by View)
in View (created by ScrollView)
in RCTScrollView
in VScrollViewNativeComponent (created by ScrollView)
in ScrollView (created by ScrollView)
in Wrapper (created by Home)
in Home
in Unknown (created by Route(index))
in Suspense (created by Route(index))
in Route (created by Route(index))
in Route(index) (created by SceneView)
in StaticContainer
Related to
Components
Demo
Docs
Typings
Steps to reproduce
Add import { TextField } from "react-native-ui-lib"; and <TextField placeholder="username" />
If I import the TextField from import TextField from "react-native-ui-lib/textFieldOld";, it does work on Android, however I'm not sure if it is a good idea to use something old here. :)
Probably similar issue also with the Picker component:
Warning: Error: Exception in HostFunction: TypeError: expected dynamic type `string', but had type `double'
This error is located at:
in AndroidTextInput (created by InternalTextInput)
in InternalTextInput (created by TextInput)
in TextInput (created by Incubator.TextField)
in Incubator.TextField (created by TextField)
in RCTView (created by View)
in View
in View (created by TextField)
in RCTView (created by View)
in View
in View (created by TextField)
in RCTView (created by View)
in View
in View (created by TextField)
in TextField (created by TextField)
in forwardRef (created by TextField)
in TextField (created by TextField)
in forwardRef (created by Picker)
in RCTView (created by View)
in View
in View
in RCTView (created by View)
in View (created by Animated(View))
in Animated(View) (created by TouchableOpacity)
in TouchableOpacity (created by TouchableOpacit
...
Description
Using the
TextField
component on Android builds makes the app crash when opening a screen where this component is being rendered. If I change it to RNTextInput
, it works.Error message:
Related to
Steps to reproduce
Add
import { TextField } from "react-native-ui-lib";
and<TextField placeholder="username" />
If I import the
TextField
fromimport TextField from "react-native-ui-lib/textFieldOld";
, it does work on Android, however I'm not sure if it is a good idea to use somethingold
here. :)Expected behavior
Render a working component.
Actual behavior
App crashes.
More Info
Code snippet
Environment
Affected platforms
The text was updated successfully, but these errors were encountered: