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

  • ReScript React Native
  • Docs
  • Components
  • APIs
  • Blog
  • GitHub
  • AccessibilityInfo
  • ActionSheetIOS
  • Alert
  • Animated
  • AnimationFrame
  • AppRegistry
  • AppState
  • BackHandler

This view

  • Original page
  • New address

GeezerVison is showing rescript-react-native.github.io — Animated | ReScript React Native

ReScript bindings mirror the React Native Animated API (Value, ValueXY, timing / spring / decay, parallel, sequence, loop, Animated.View / Text / Image / ScrollView, interpolation, …).

open ReactNative
open Animated

@react.component
let make = () => {
let fade = useAnimatedValue(~initialValue=0.)

React.useEffect0(() => {
timing(
fade,
{
toValue: Value.Timing.fromRawValue(1.),
duration: 500.,
useNativeDriver: true,
},
)->start
None
})

<View style={Style.s({opacity: fade->StyleProp.float})}>
<Text> {"Fade in"->React.string} </Text>
</View>
}

With open Animated, View refers to Animated.View.

See src/apis/Animated.res for the full surface.

You are visitor 01402503 — 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.