Can I make dynamic styles in React Native?

后端 未结 15 2239
别跟我提以往
别跟我提以往 2020-12-12 15:24

Say I have a component with a render like this:


Where jewelStyle =

  {
    bo         


        
15条回答
  •  独厮守ぢ
    2020-12-12 16:09

    Had some issue syntactically. This worked for me

     Hello 
    
    const styles = StyleSheet.create({
       textStyle :{
          textAlign: 'center',   
          fontFamily: 'Arial',
          fontSize: 16
      }
      });
    

提交回复
热议问题