小编pra*_*dha的帖子

尝试创建发行包时,无法解析模块"AccessibilityInfo"

我在跑步

react-native bundle --platform windows --dev false --entry-file index.windows.js --bundle-output windows/app/ReactAssets/index.windows.bundle --assets-dest windows/app/ ReactAssets/
Run Code Online (Sandbox Code Playgroud)

命令创建发行包,但我收到以下错误

Unable to resolve module `AccessibilityInfo` from `C:\Users\godha.pranay\project\node_modules\react-native\Libraries\react-native\react-native-implementation.js`: Module does not exist in the module map



This might be related to https://github.com/facebook/react-native/issues/4968

To resolve try the following:

  1. Clear watchman watches: `watchman watch-del-all`.

  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.

  3. Reset Metro Bundler cache: `rm -rf $TMPDIR/react-*` or `npm start -- --reset-cache`.  4. Remove haste cache: `rm -rf $TMPDIR/haste-map-react-native-packager-*`.
Run Code Online (Sandbox Code Playgroud)

我尝试了互联网上推荐的一切,没有任何工作.我完全坚持下去了.请帮忙.

bundle react-native

31
推荐指数
5
解决办法
3万
查看次数

使用 javascript 返回父窗口

我正在从父窗口弹出一个子窗口。现在,在子窗口中,我有一个 html 表单,用户将填写并提交该表单,请求将在服务器站点上进行。现在,我希望对此请求的响应重定向到父窗口,并且我的子窗口自动关闭。希望我足够清楚。如果没有请告诉我。先感谢您。

javascript

5
推荐指数
1
解决办法
2万
查看次数

确定数组的长度以提高内存效率

用C语言编写一个函数:

  • 将存储在字符串中的句子作为其唯一参数(例如,"这是一个短句子".).
  • 返回一个字符串,该字符串由每个单词中的字符数(包括标点符号)组成,空格分隔数字.(例如,"4 2 1 5 9").

我写了以下程序:

 int main()    
    {  
            char* output;  
            char *input = "My name is Pranay Godha";  
            output = numChar(input);  
            printf("output : %s",output);  
            getch();  
            return 0;  
    }  


char* numChar(char* str)   
{   
        int len = strlen(str);  
    char* output = (char*)malloc(sizeof(char)*len);   
    char* out = output;  
    int count = 0;  

    while(*str != '\0')  
    {
        if(*str != ' ' )
        {
            count++;
        }
        else
        {

            *output = count+'0';
            output++;
            *output = ' ';
            output++;
            count = 0;

         }
         str++;
   } …
Run Code Online (Sandbox Code Playgroud)

c memory

1
推荐指数
1
解决办法
416
查看次数

cin不接受输入作为ENTER

char ch[4];  
char* ptr;  
ptr = ch;  
while(1)  
{  
  cin >> *ptr;  
if(*ptr == '\n')  
break;  
ptr++;  
}
Run Code Online (Sandbox Code Playgroud)

在这里,我只是编写了一些示例代码,我试图在用户写入ENTER时退出while循环,但它不起作用.请帮我.先感谢您.

c++ cin

0
推荐指数
1
解决办法
254
查看次数

标签 统计

bundle ×1

c ×1

c++ ×1

cin ×1

javascript ×1

memory ×1

react-native ×1