Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do I style multipleText ? #677

Closed
Bucci83 opened this issue Jun 21, 2023 · 1 comment
Closed

how do I style multipleText ? #677

Bucci83 opened this issue Jun 21, 2023 · 1 comment

Comments

@Bucci83
Copy link

Bucci83 commented Jun 21, 2023

I've been trying to style multipleText labels with no luck, here is the sample

<DropDownPicker multipleText={<Text>${value.length == 1 ? value : 'multi status' }</Text>} ... />

i get the error
ERROR TypeError: Cannot read property 'replace' of undefined

This error is located at:
in Picker (at AdminJobsScreen.js:423)
in RCTView (at View.js:32)
in View (at AdminJobsScreen.js:393)
in RCTView (at View.js:32)
in View (at AdminJobsScreen.js:391)
in RCTView (at View.js:32)
in View (at AdminJobsScreen.js:356)
in AdminJobsScreen (at SceneView.tsx:132)
in StaticContainer
in EnsureSingleNavigator (at SceneView.tsx:124)
in SceneView (at useDescriptors.tsx:217)
in RCTView (at View.js:32)
in View (at DebugContainer.native.tsx:27)
in DebugContainer (at NativeStackView.native.tsx:82)
in MaybeNestedStack (at NativeStackView.native.tsx:326)
in RCTView (at View.js:32)
in View (at NativeStackView.native.tsx:319)
in RNSScreen (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (at src/index.native.tsx:260)
in Suspender (at src/index.tsx:40)

any ideas on how to do it ?

@Bucci83
Copy link
Author

Bucci83 commented Jun 21, 2023

nevermind, I was able to do it by adding
textStyle={{color:'white',fontWeight: 'bold', textAlign: 'center'}}

@Bucci83 Bucci83 closed this as completed Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant