gluestack-ui icon indicating copy to clipboard operation
gluestack-ui copied to clipboard

useToast Use warning

Open wumo1016 opened this issue 1 year ago • 1 comments

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>

image

wumo1016 avatar Apr 08 '24 10:04 wumo1016

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

surajahmed avatar Apr 17 '24 05:04 surajahmed

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.

sra1kumar-NULL avatar Sep 27 '24 10:09 sra1kumar-NULL