Видимое переполнение React не работает в Android даже после обновления до RN 0.58.4Android

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Видимое переполнение React не работает в Android даже после обновления до RN 0.58.4

Сообщение Anonymous »


According to this RN release , now on we can use overflow:'visible' in android . But still React Native Android clipping its Children view. consider the below code

import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View, ScrollView,FlatList } from 'react-native'; type Props = {}; export default class App extends Component { objectValues = { one: 'one', two: 'one', three: 'one', four: 'one', five: 'one', six: 'one', seven: 'one', eight: 'one', nine: 'one', ten: 'one', eleven: 'one' } listData=[1,2,3,4,5,6,7] renderBody(item, index) { return ( {item} ) } _renderList() { return ( index} renderItem={({ item, index }) => this.renderBody(item, index)} /> ); } render() { return ( {Object.keys(this.objectValues) .map((key, index) => { console.log(key) return this._renderList() })} ); } } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#F5FCFF', }, innerContainer: { marginRight: 10, overflow:'visible', marginTop:10, height: 100, flex:1, backgroundColor: 'green', zIndex:1 }, overflowStyle: { height: 20, width: 30, backgroundColor: 'red', position: 'absolute', left: -20, top: 50, zIndex:10 }, scrollStyle:{ overflow:'visible', zIndex:1, backgroundColor:'white' } }); the code runs in iOS like this


Изображение


But in Android its shows like this. The parent view clipping its child views. In my case parent is ScrollView


Изображение


So my question is, are they fixed this issue or not? OR is there any proplem in my code ? please help

expo link :: https://snack.expo.io/ryZwe-mHN


Источник: https://stackoverflow.com/questions/546 ... ed-to-rn-0
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»