Display: Inline Equivalent in React Native

后端 未结 2 1406
旧时难觅i
旧时难觅i 2021-01-31 02:27

It seems as though I am having problems with creating a display: inline styling equivalent with flexbox. So far I have achieved the following (where the red and blue lines are g

2条回答
  •  鱼传尺愫
    2021-01-31 02:41

    This works for me:

    import {View, Text} from 'react-native';
    
    
     Hello
    
    
    const styles = StyleSheet.create({
       container: {
         flexDirection: 'row', 
         alignSelf: 'flex-start'
       }
    });
    

提交回复
热议问题