mvcoconut / examples-react-native Goto Github PK
View Code? Open in Web Editor NEWReact Native app built from Coconut
Home Page: https://github.com/MVCoconut
React Native app built from Coconut
Home Page: https://github.com/MVCoconut
File "_build/src/macro/eval/evalContext.ml", line 342, characters 2-8: Assertion failed
From gitter:
the TODO example is kind of working on react-native
https://github.com/MVCoconut/examples-react-native/tree/todo
but I am not very sure why, but the list items seem to be linked
say I added 3 items, and the list does render 3 items
but all three of them are rendering the first item
Just as a reminder.
I've tried building for Android and it builds, but the app shows a warning on startup and if you try for example to add a new todo it crashes.
Build steps:
The application start as expected in the emulator, but the following warning appears just at startup: Warning, can't call setState
on a component that is not yet mounted. This is a no-op, [...].
And if you try to create a new todo, it crashes when pressing Enter:
I have to make this change: 2237b37#diff-02d62423f7bdb96bb710870e015f440bR9
I am not sure what's wrong @back2dos
Haven't tested the mobile versions but I tested the web target.
When rendering the list, given you've added items, it will incorrectly render additional duplicate or zombie items. I think it has something to do with the virtual Dom not being able to correctly differentiate item updates between renders. Looks like it is happening because we're using an object as a key instead of a identifier like a string or integer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.