如何修复选项卡的样式(以及字体并使其更细)

时间:2019-04-25 06:38:12

标签: react-native

“我正在设置顶部标签导航器的新组件,我希望使它们的样式更薄,并且还更改字体等。 所以我想知道我是怎么做到的。

这是用于顶部标签导航器的新组件

private func application(application: UIApplication,
                 didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
    Messaging.messaging().apnsToken = deviceToken as Data
    print("Registered Notification")
}

func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {

        print(error.localizedDescription)
        print("Not registered notification")
}

@available(iOS 10, *)
extension AppDelegate : UNUserNotificationCenterDelegate {

    // Receive displayed notifications for iOS 10 devices.
    func userNotificationCenter(_ center: UNUserNotificationCenter,
                                willPresent notification: UNNotification,
                                withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
        let userInfo = notification.request.content.userInfo

        // With swizzling disabled you must let Messaging know about the message, for Analytics
        // Messaging.messaging().appDidReceiveMessage(userInfo)

        // Print message ID.
        if let messageID = userInfo["gcm.message_id"] {
            print("Message ID: \(messageID)")
        }

        // Print full message.
        print(userInfo)

        // Change this to your preferred presentation option
        completionHandler([])
    }

    func userNotificationCenter(_ center: UNUserNotificationCenter,
                                didReceive response: UNNotificationResponse,
                                withCompletionHandler completionHandler: @escaping () -> Void) {
        let userInfo = response.notification.request.content.userInfo
        // Print message ID.
        if let messageID = userInfo["gcm.message_id"] {
            print("Message ID: \(messageID)")
        }

        // Print full message.
        print(userInfo)

        completionHandler()
    }
}

我希望制作更细的样式,并更改字体等。 所以我想知道我该怎么做。

1 个答案:

答案 0 :(得分:0)

createMaterialTopTabNavigatorTabNavigatorConfig中使用const TabNavigator = createMaterialTopTabNavigator({ Products: Results, Brands: Results, Categories: Results, UPC: Results, Tags: Results, }, { tabBarOptions: { style: {/* tab bar style */}, labelStyle: {/* tab label style */}, // etc } })

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

       <script src="/Scripts/jquery.js"></script>
        <script src="/Scripts/bootstrap.js"></script>

    </head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
  <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
 /telerik:RadAjaxPanel>
     <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"     >
    </telerik:RadAjaxLoadingPanel>
    </form>
</body>
</html>