Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

f-f/purescript-react-basic-native

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

115 Commits
115 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-react-basic-native

This library builds off purescript-react-basic to enable React Native (0.60 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.

Events

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.

Setup

  • npm install spago expo-cli --global
  • spago install
  • spago build

NixOS

  • nix-shell - sets up PureScript/spago tools (but not JS/npm tools)
  • npm install expo-cli --global
  • spago install
  • spago build

Examples

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.