Skip to content
No description, website, or topics provided.
PureScript TypeScript
Branch: master
Clone or download
Latest commit f5a963d May 24, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
codegen this time I've REALLY fixed the comments May 24, 2019
src/React/Basic this time I've REALLY fixed the comments May 24, 2019
LICENSE add apache2 license May 23, 2019 setting up pulp May 23, 2019
bower.json fixed license May 23, 2019
packages.dhall updated spago and react-basic May 17, 2019
spago.dhall updated spago and react-basic May 17, 2019


This library builds off purescript-react-basic to enable React Native (0.57 at the time of writing). 99% of the library is codegen'd from the React Native typescript type declaration. Look in the codegen directory for the code that does this. We've recreated the counter and controlled-input examples from purescript-react-basic in the examples directory. They are nearly identical except for events, which are discussed below.


The event types in React Native are a little more rich than they are in React, so we've created a new event type called NativeSyntheticEvent a, where a is the type of the nativeEvent field. In general this is nice, but requires some additional type annotations when used with the merge function. This is illustrated in the controlled-input example. Correspoinding functions from the React.Basic.DOM.Events module are in the React.Basic.Native.Events module.

You can’t perform that action at this time.