<bdo id='fo2bR'></bdo><ul id='fo2bR'></ul>
  • <small id='fo2bR'></small><noframes id='fo2bR'>

    <legend id='fo2bR'><style id='fo2bR'><dir id='fo2bR'><q id='fo2bR'></q></dir></style></legend>
    1. <i id='fo2bR'><tr id='fo2bR'><dt id='fo2bR'><q id='fo2bR'><span id='fo2bR'><b id='fo2bR'><form id='fo2bR'><ins id='fo2bR'></ins><ul id='fo2bR'></ul><sub id='fo2bR'></sub></form><legend id='fo2bR'></legend><bdo id='fo2bR'><pre id='fo2bR'><center id='fo2bR'></center></pre></bdo></b><th id='fo2bR'></th></span></q></dt></tr></i><div id='fo2bR'><tfoot id='fo2bR'></tfoot><dl id='fo2bR'><fieldset id='fo2bR'></fieldset></dl></div>
        <tfoot id='fo2bR'></tfoot>

        找不到变量 atob

        Can#39;t find a variable atob(找不到变量 atob)
      1. <small id='7AOba'></small><noframes id='7AOba'>

        <legend id='7AOba'><style id='7AOba'><dir id='7AOba'><q id='7AOba'></q></dir></style></legend>
      2. <i id='7AOba'><tr id='7AOba'><dt id='7AOba'><q id='7AOba'><span id='7AOba'><b id='7AOba'><form id='7AOba'><ins id='7AOba'></ins><ul id='7AOba'></ul><sub id='7AOba'></sub></form><legend id='7AOba'></legend><bdo id='7AOba'><pre id='7AOba'><center id='7AOba'></center></pre></bdo></b><th id='7AOba'></th></span></q></dt></tr></i><div id='7AOba'><tfoot id='7AOba'></tfoot><dl id='7AOba'><fieldset id='7AOba'></fieldset></dl></div>

              <tbody id='7AOba'></tbody>

                <bdo id='7AOba'></bdo><ul id='7AOba'></ul>
                <tfoot id='7AOba'></tfoot>
                • 本文介绍了找不到变量 atob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Screen1.js

                  import React,{useEffect} from 'react'
                  import {View,Text} from 'react-native'
                  import * as firebase from 'firebase/app';
                  import '@firebase/firestore';
                  
                  const Screen1 = props =>{
                  
                      useEffect(() => 
                      {
                          var dbh = firebase.firestore().collection("Jots").doc("note");
                          dbh.set({name:"pradeep"}) //The yellow warning is popped up in this line.
                      }); 
                  
                      return(
                               <View>
                                  <Text>Title</Text>
                               </View>
                      )
                  }
                  

                  控制台

                  [Unhandled promise rejection: ReferenceError: Can't find variable: atob]
                  
                  Stack trace:
                    node_modules@firebasefirestoredistindex.cjs.js:23101:0 in <global>
                    http://192.168.0.108:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&minify=false&hot=false:131203:60 in fromBase64String
                  
                  
                  

                  我只是按照博览会文档中的指南进行操作,但仍然不知道为什么会出现此问题.对此需要一个明确的解释.还有什么是 atob 变量?

                  I just followed the guide in the expo documentation but still don't know why this problem is occurring. Need a clear explanation on this. And also what is atob variable?

                  推荐答案

                  我尝试过降级,但这并不是我的解决方案.我不知道为什么.

                  I have tried downgrading but that's not resulted as a solution to me. I don't know why.

                  app.jsbase64的全局导入解决了这个问题.

                  The global import of base64 in the app.js resolved this problem.

                  import {decode, encode} from 'base-64'
                  
                  if (!global.btoa) {  global.btoa = encode }
                  
                  if (!global.atob) { global.atob = decode }
                  

                  感谢您的回复.

                  这篇关于找不到变量 atob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                  getFullYear returns year before on first day of year(getFullYear 在一年的第一天返回前一年)
                  <tfoot id='WtHu1'></tfoot>
                    1. <legend id='WtHu1'><style id='WtHu1'><dir id='WtHu1'><q id='WtHu1'></q></dir></style></legend>
                      <i id='WtHu1'><tr id='WtHu1'><dt id='WtHu1'><q id='WtHu1'><span id='WtHu1'><b id='WtHu1'><form id='WtHu1'><ins id='WtHu1'></ins><ul id='WtHu1'></ul><sub id='WtHu1'></sub></form><legend id='WtHu1'></legend><bdo id='WtHu1'><pre id='WtHu1'><center id='WtHu1'></center></pre></bdo></b><th id='WtHu1'></th></span></q></dt></tr></i><div id='WtHu1'><tfoot id='WtHu1'></tfoot><dl id='WtHu1'><fieldset id='WtHu1'></fieldset></dl></div>
                      • <bdo id='WtHu1'></bdo><ul id='WtHu1'></ul>

                          <tbody id='WtHu1'></tbody>

                        <small id='WtHu1'></small><noframes id='WtHu1'>