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

TextProps are extended by ListItem.Content instead of ListItem.Title #3893

Open
1 task done
michalvadak opened this issue Feb 29, 2024 · 0 comments
Open
1 task done

Comments

@michalvadak
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Explain what you did

  1. I've extended theme via this docs and addded custom params to TextProps

Expected behavior

ListItem.Title should extend the TextProps params

Describe the bug

  1. ListItem.Content extends the TextProps params but can't be used
  2. ListItem.Title can't be assigned with the TextProps params because of TypeScript

Steps To Reproduce

1. Install RNE to your RN project
2. Setup theme
3. Extend `TextProps` with custom params

Screenshots

image
image
image

Your Environment

`npx @rneui/envinfo`
  ```

Global Dependencies:

No related dependency found

Local Dependencies:

  • @rneui/base : ^4.0.0-rc.8

  • @rneui/themed : ^4.0.0-rc.8

  • expo : ~50.0.7

  • react : 18.2.0

  • react-native : 0.73.4

  • @types/react : ~18.2.45

    
    
@michalvadak michalvadak changed the title ListItem.Content extends TextProps instead of ListItem.Title TextProps are extended by ListItem.Content instead of ListItem.Title Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant