Comments (2)
Thanks Lucas! I found my problem in the code you linked, and it was solved by this little if statement:
// an error is thrown when render a component from localStorage.
// So it's necessary reassing the component
if (renderedStep.component) {
const id = renderedStep.id;
data.renderedSteps[i].component = steps[id].component;
}
It appears that components can't be rendered from AsyncStorage in React Native as well! If I can code together a clean solution for ChatBot 'caching' a conversation in RN I will submit a pull request. Cheers!
from react-native-chatbot.
Hi @mediashane, thank you!
I used localStorage
to cache data in the web version. Maybe the code can help you to fix this issue.
You can find the code here
from react-native-chatbot.
Related Issues (20)
- styled-components/native internal node modules error
- Invariant Violation: requireNativeComponent: "ARTShape" was not found in the UIManager.
- not able to run app in new version HOT 10
- not able run in ios please advice HOT 1
- Chatbot component keeps re rendering any time a modal is closed or open HOT 15
- @musadiq-jinbade give me the clarification how to solve this issue
- Custom conversion but chatbox not reloaded
- ReactNative chat Box is not working for dynamic Data HOT 1
- TypeError: Object(c.keyframes) is not a function when i try to run
- How to save the progress and display again? HOT 3
- Theme not working
- Theme not working
- botAvatar
- change fontSize ?
- How to reload chat with initial question HOT 2
- How to edit the media queries default values or after it renders ?! HOT 1
- Intercept Messages
- Unable to install HOT 1
- SyntaxError: Cannot use import statement outside a module
- any preview???
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-chatbot.