Skip to content

Update ButtonGroup.tsx - #3260

Closed
JimTeva wants to merge 2 commits into
react-native-elements:nextfrom
JimTeva:patch-1
Closed

Update ButtonGroup.tsx#3260
JimTeva wants to merge 2 commits into
react-native-elements:nextfrom
JimTeva:patch-1

Conversation

@JimTeva

@JimTeva JimTeva commented Dec 10, 2021

Copy link
Copy Markdown
  • TS complains on prop "buttons" when receiving a variable with type {element: JSX.Element;}[]
  • The documentation indicates: const buttons = [{ element: component1 }, { element: component2 }, { element: component3 }]
  • So Typescript should not complain
  • In order to not break things I only added type {element: React.ReactElement} and didn't remove React.ReactElement<{}>

- TS complains on prop "buttons" when receiving a variable with type {element: JSX.Element;}[] which is odd
- The documentation indicates: const buttons = [{ element: component1 }, { element: component2 }, { element: component3 }]
- So Typescript should not complain
- In order to not break things I only added type {element: React.ReactElement} and didn't remove React.ReactElement<{}>
@netlify

netlify Bot commented Dec 10, 2021

Copy link
Copy Markdown

✔️ Deploy Preview for react-native-elements canceled.

🔨 Explore the source changes: d075033

🔍 Inspect the deploy log: https://app.netlify.com/sites/react-native-elements/deploys/61c362cba52d3e000877d1bb

@JimTeva JimTeva closed this Dec 16, 2021
@JimTeva JimTeva reopened this Dec 16, 2021
@JimTeva JimTeva closed this Dec 22, 2021
@JimTeva JimTeva reopened this Dec 22, 2021
@arpitBhalla

Copy link
Copy Markdown
Member

I think #3220 will do the work, we can close this one.

@JimTeva JimTeva closed this Jan 13, 2022
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

Successfully merging this pull request may close these issues.

2 participants