Open ltsai-tb opened 11 months ago
If the parent container of the skeleton placeholder changes width and the placeholder takes a width based on its parent, the placeholder only resizes on iOS on decrease instead of dynamic increase/decrease for both platforms.
const handleLayout = (event) => { const { width } = event.nativeEvent.layout; setLoaderWidth(width - 100) }; return ( <View > <View width={containerWidth} onLayout={handleLayout}> <SkeletonPlaceholder> <SkeletonPlaceholder.Item width={loaderWidth} height={200} /> </SkeletonPlaceholder> </View> </View> );
Having issues with this as well relating to orientation change
If the parent container of the skeleton placeholder changes width and the placeholder takes a width based on its parent, the placeholder only resizes on iOS on decrease instead of dynamic increase/decrease for both platforms.