二 Style

作者: falcon_li | 来源:发表于2018-01-03 14:55 被阅读0次

1.所有组件(component)都有一个 style 属性;

2.在一个地方使用 StyleSheet.Create 去给 style 下定义:

    例:

    const styles = StyleSheet.create({

                          bigblue: {

                                            color: 'blue',

                                            fontWeight: 'bold',

                                            fontSize: 30,

                                          },

                              red: {

                                            color: 'red',                

                                      },

                                });

相关文章

网友评论

      本文标题:二 Style

      本文链接:https://www.haomeiwen.com/subject/sdvhnxtx.html