gluestack-ui
gluestack-ui copied to clipboard
useToast Use warning
Description
Warning: Invalid prop initial supplied to React.Fragment. React.Fragment can only have key and children props.
CodeSandbox/Snack link
No response
Steps to reproduce
No response
gluestack-ui Version
1.1.22
Platform
- [X] Expo
- [ ] React Native CLI
- [ ] Next
- [ ] Web
- [ ] Android
- [ ] iOS
Other Platform
No response
Additional Information
<Button
title="提示"
onPress={() => {
toast.show({
placement: 'top',
render: () => (
<Toast testID="aaa" action="attention" variant="solid">
<Text>测试消息</Text>
</Toast>
)
})
}}
></Button>
Hi @wumo1016 ,
Can you please try upgrading @gluestack-style/react version to the latest?
I have created a snack with your example, and it is working fine. Please have a look at this. https://snack.expo.dev/@sacontrack/toast-example
Hey @wumo1016 , we haven't recieved any issue fro this component. Closing this issue for now , please feel free to reopen this issue if you faced any issues have any queries.