<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

        时间:2023-11-29
      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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:反应导航5从堆栈导航器中隐藏标签栏 下一篇:使用博览会反应原生链接?

                  相关文章

                  <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>

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