LucasBassetti / react-native-chatbot

:speech_balloon: Easy way to create conversation chats
https://github.com/LucasBassetti/react-simple-chatbot
MIT License
248 stars 116 forks source link

[Not an issue] Expo version #66

Open jzarca01 opened 4 years ago

jzarca01 commented 4 years ago

Hi Lucas,

Just to let you know that I've forked your project to make it work with Expo.

In substance, it replaces the library react-native-loader with react-native-three-dots-loader in Loading.js

It is available here https://github.com/jzarca01/react-native-chatbot-expo

fortydegrees commented 4 years ago

This works! Thanks!

To get it to work i had to:

npm i styled-components

Might be worth mentioning.

Also it spits out a lot of warnings e.g.

Expected style "marginLeft: 6" to contain units
- node_modules/expo/build/environment/muteWarnings.fx.js:18:23 in warn
- ... 26 more stack frames from framework internals

Expected style "marginBottom: 10" to contain units
- node_modules/expo/build/environment/muteWarnings.fx.js:18:23 in warn
- ... 26 more stack frames from framework internals

Expected style "marginRight: 6" to contain units
- node_modules/expo/build/environment/muteWarnings.fx.js:18:23 in warn
- ... 26 more stack frames from framework internals

But seems to work fine nonetheless

gasolin commented 3 years ago

thanks for the effort. After running npm i styled-components, it also works on the web via npm run web command with expo