react-native-elements / react-native-elements

Cross-Platform React Native UI Toolkit
https://reactnativeelements.com
MIT License
24.95k stars 4.64k forks source link

Tooltip component crashes app on iPhone when closing #3303

Open andrewgilliland opened 2 years ago

andrewgilliland commented 2 years ago

On iPhone (iOS 14.8.1), when selecting the icon wrapped in the tooltip component, the expected text is rendered in a modal. But when closing the modal, the error message Modal was presented with 0x2 orientations mask but the application only supports 0x8. Add more interface orientations to your app's Info.plist to fix this. NOTE: This will crash in non-dev mode. is displayed. Note: this does not occur on iPad (iOS 12.5.5).

I am using the component like this:

 <Tooltip
     height={150}
     width={150}
     backgroundColor={'#FFF'}
     containerStyle={styles.toolTip}
     popover={
            <Text>Some Text</Text>
         }
>
         <MaterialCommunityIcons
             name="information"
              size={24}
              color="black"
         />
</Tooltip>

Thank you in advance for any assistance and for creating this library.

software version
react-native-elements 3.4.2
react-native 0.64.3
arpitBhalla commented 2 years ago

Can you confirm this on V4 beta

andrewgilliland commented 2 years ago

I updated to V4 beta and then I got the error: Unable to resolve module ./Avatar from .../node_modules/react-native-elements/dist/index.js and the app crashes. Any ideas?

arpitBhalla commented 2 years ago

@andrewgilliland Can you confirm this with Bleeding Edge version

lunajing commented 2 years ago

I updated to V4 beta and then I got the error: Unable to resolve module ./Avatar from .../node_modules/react-native-elements/dist/index.js and the app crashes. Any ideas?

Did you resolve it?