Giter VIP home page Giter VIP logo

react-native-simple-qq's Introduction

简易QQ 开发:

🍄 应用预览GIF:

    1. 注册、登录:

发布博客

    1. 查询、添加好友,通过/拒绝好友请求,实时通讯,未读消息通知:

发布博客

🌈 功能:

  1. 注册 -> 登录 -> 添加好友 -> 互发消息,实时通讯 -> 发消息是把该好友放到聊天列表 -> 未读消息通知

🍇 遇到的难题:

  1. 头像上传和服务队接收存储:

选择相册图片用的是 react-native-image-picker 这个组件,但是它返回的图片格式只有 base64 ,不能得到 blog 格式,后端想用 multer 接收图片以存储,但是 multer 又只能接收文件格式,所以开始时我想把得到的 base64 格式换成 文件格式再上传待服务端,但是后面在服务端得到的文件格式的 size 居然为 0 ,上传的文件没有存下来,但是文件的名字格式这些都有,就是没有大小。所以最后,我直接把 base64 上传到服务器,在数据库存下来了。然而这么大的数据存在数据库会是数据库变慢。可能改成把 base64 文件存在其他的路径,而在数据库存储该文件的路径,需要时再去读取比较好。

从Blob和文件遇到的难题,客户端 web 还是可以有许多要学的东西。

react-native-simple-qq's People

Contributors

qumuchegi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.