代码之家  ›  专栏  ›  技术社区  ›  IsaacK

如何删除/隐藏忽略按钮代码push react native?

  •  0
  • IsaacK  · 技术社区  · 8 年前

    4 回复  |  直到 8 年前
        1
  •  1
  •   Nabil Musa    8 年前

    在命令行中,可以使用强制选项隐藏忽略按钮:

    # Release a mandatory update with a changelog
    code-push release-react MyApp-iOS ios -m --description "Modified the header color"
    
        2
  •  1
  •   Tyreal Gray    8 年前

    只要改变

    import React from 'react';
    import {
        AppRegistry,
    } from 'react-native';
    
    import codePush from "react-native-code-push";
    
    let codePushOptions = {
        checkFrequency: codePush.CheckFrequency.ON_APP_RESUME,
        installMode: codePush.InstallMode.ON_NEXT_RESUME,
    };
    
    import App from './app/app';
    
    AppRegistry.registerComponent('yourApp', () => codePush(codePushOptions)(App));
    
        3
  •  1
  •   Max Mironov    8 年前

    首先,不建议在应用程序中使用UpdateDialog,因为应用程序可能会因以下原因被AppStore拒绝: AppStore Review Guidelines 声明:

    应用程序不得强制用户对应用程序进行评分、审查和下载 其他应用程序或其他类似操作以访问功能, 内容或应用程序的使用。

    所以请小心使用,也请参见 this reference 了解更多详细信息。

    Ignore 按钮-您可以提供一个空字符串来代替按钮名称,例如:

    CodePush.sync( { installMode: CodePush.InstallMode.IMMEDIATE, updateDialog: { optionalIgnoreButtonLabel: "" } }, null, null );

        4
  •  0
  •   Deepanshu    4 年前

    你只需要: .

    enter image description here

    推荐文章