Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

react native scrollable

import React from 'react';
import { StyleSheet, Text, SafeAreaView, ScrollView, StatusBar } from 'react-native';

const App = () => {
  return (
    <SafeAreaView style={styles.container}>
      <ScrollView style={styles.scrollView}>
        <Text style={styles.text}>
          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
          eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
          minim veniam, quis nostrud exercitation ullamco laboris nisi ut
          aliquip ex ea commodo consequat. Duis aute irure dolor in
          reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
          pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
          culpa qui officia deserunt mollit anim id est laborum.
        </Text>
      </ScrollView>
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingTop: StatusBar.currentHeight,
  },
  scrollView: {
    backgroundColor: 'pink',
    marginHorizontal: 20,
  },
  text: {
    fontSize: 42,
  },
});

export default App;
Comment

PREVIOUS NEXT
Code Example
Javascript :: promise recursive settimeout 
Javascript :: binary agents freecodecamp 
Javascript :: require is not defined on html script with electron 
Javascript :: node command line input 
Javascript :: video in react native stack overflow 
Javascript :: REACt helmet og tags DONT WORK 
Javascript :: how to get the url of a page in javascript 
Javascript :: set timeout javascript 
Javascript :: axios get status code 
Javascript :: find element by two attributes jquery 
Javascript :: nodejs mysql connection pool 
Javascript :: react native text span 
Javascript :: how get first option in select in vue js 
Javascript :: npm ERR! missing script: start 
Javascript :: jquery check if has class 
Javascript :: html add class 
Javascript :: datatable get all selected row data 
Javascript :: set url parameters javascript 
Javascript :: mocha timeout 
Javascript :: js filter blur Property 
Javascript :: javascript try 
Javascript :: how to remove a property from an object in javascript 
Javascript :: error: expected undefined to be a graphql schema. 
Javascript :: how to change checkbox state in jquery 
Javascript :: javascript sleep settimeout 
Javascript :: reverse a number in javascript w3schools 
Javascript :: react js create element 
Javascript :: javascript get element tag 
Javascript :: how to make a textarea unwritable in react native 
Javascript :: object.keys 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =