import{btoa,atob}from'react-native-quick-base64'constbase64=btoa('foo')constdecoded=atob(base64) Methods Compatible withbase64-js. byteLength(b64: string): number Takes a base64 string and returns length of byte array. toByteArray(b64: string, removeLinebreaks: boolean = false): Uint8Array...
Summary 新增react-native-quick-base64测试demo,测试用例 新增测试demo和测试用例新增测试API包含8个方法函数 byteLength:获取base64转Unit8Array 后获取Unit8Array的字符数组长度 btoa:字符串编码base64 atob:base64解码字符串 toByteArray 和 fromByteArray:base