-
Notifications
You must be signed in to change notification settings - Fork 83
Description
Description
[Only IOS]
The onLayout function is not updating the height value while the element is being built.
This bug only occurs on IOS (I don't have iPhone to check the error on the real device)
Reconstruct the error:
Just run the project in the IOS simulator with the Collapse structure that is in the documentation.
import { Collapse } from "react-native-magnus";
<Collapse>
<Collapse.Header
active
color="gray900"
fontSize="md"
p="xl"
px="none"
prefix={<Icon name="wallet" mr="md" color="gray400" />}
>
Header 1
</Collapse.Header>
<Collapse.Body pb="xl">
<Text>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Minus nobis
corporis ut, ex sed aperiam. Debitis, facere! Animi quis laudantium, odio
nulla recusandae labore pariatur in, vitae corporis delectus repellendus.
</Text>
</Collapse.Body>
</Collapse>;System details
System:
OS: macOS 11.6
CPU: (8) arm64 Apple M1
Memory: 84.02 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.3 - ~/.nvm/versions/node/v14.17.3/bin/node
Yarn: 1.22.11 - ~/.nvm/versions/node/v14.17.3/bin/yarn
npm: 6.14.13 - ~/.nvm/versions/node/v14.17.3/bin/npm
Watchman: 2021.06.07.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.10.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 28, 29, 30, 31
Build Tools: 28.0.3, 29.0.0, 29.0.2, 29.0.3, 30.0.2, 31.0.0
System Images: android-29 | Google Play ARM 64 v8a, android-30 | Google Play Intel x86 Atom_64, android-31 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7678000
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
react: 16.11.0
react-native: 0.63.2
