Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| import React from 'react'; | |
| import {ScrollView, Text} from 'react-native'; | |
| const isCloseToBottom = ({layoutMeasurement, contentOffset, contentSize}) => { | |
| const paddingToBottom = 20; | |
| return layoutMeasurement.height + contentOffset.y >= | |
| contentSize.height - paddingToBottom; | |
| }; | |
| const MyCoolScrollViewComponent = ({enableSomeButton}) => ( |
| import express from 'express'; | |
| // ... So much space for unstable dependency imports ... | |
| let app = express(); | |
| // ... Insert your own routing magic ... | |
| export default app; |