const React = require("react-native"); const { AppRegistry, StyleSheet, Text, View, Image, TextInput, ScrollView, SliderIOS, } = React; const HelloGL = require("./HelloGL"); const Saturation = require("./Saturation"); const HueRotate = require("./HueRotate"); class Simple extends React.Component { constructor (props) { super(props); this.state = { saturationFactor: 1, hue: 0, text: "and I will return leading the pack" }; } render () { const { saturationFactor, hue, text } = this.state; return Welcome to GL React Native! 1. Hello GL 2. Saturation on an Image this.setState({ saturationFactor })} /> 3. Hue Rotation on Text + Image Throw me to the wolves {text} this.setState({ hue })} /> this.setState({ text })} value={text} /> ; } } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "#F9F9F9", }, title: { fontSize: 20, textAlign: "center", margin: 5, marginBottom: 20, fontWeight: "bold" }, demos: { flex: 1, justifyContent: "center", alignItems: "center", }, demoTitle: { fontSize: 20, margin: 5, fontStyle: "italic" }, demoText1: { position: "absolute", top: 0, left: 0, width: 256, textAlign: "center", color: "#f16", backgroundColor: "transparent", fontWeight: "400", fontSize: 24, letterSpacing: 0 }, demoText2: { position: "absolute", bottom: 4, left: 0, width: 256, textAlign: "center", color: "#7bf", backgroundColor: "transparent", fontWeight: "300", fontSize: 32, letterSpacing: -1 }, }); AppRegistry.registerComponent("Simple", () => Simple);