Question : width 100% react native
Answered by : marton
import { Dimensions } from 'react-native';
width: ${(Dimensions.get('window').width)}px;
Source : | Last Update : Tue, 01 Dec 20
Question : react native width auto
Answered by : mikkel-ben0499snqxn
<View style={{backgroundColor: '#000000', alignSelf: 'flex-start' }}> <Text style={{color: '#ffffff'}}> Sample text here </Text>
</View>
Source : https://stackoverflow.com/questions/38233789/react-native-view-auto-width-by-text-inside | Last Update : Tue, 02 Nov 21