GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - f-f/purescript-react-basic-native

BranchesTags
Open more actions menu

Latest commit

 

History

115 Commits
115 Commits

Folders and files

NameName
Last commit message
Last commit date
codegen
codegen
 
 
examples
examples
 
 
src/React/Basic
src/React/Basic
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bower.json
bower.json
 
 
default.nix
default.nix
 
 
packages.dhall
packages.dhall
 
 
spago.dhall
spago.dhall
 
 

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

  • Counter
  • Controlled Input

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license
Activity

Stars

60 stars

Watchers

7 watching

Forks

19 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.