What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-01 06:25:09
getting view height dynamically in react native
import React, { Component } from 'react'; import ReactNative, { AppRegistry, View, TouchableOpacity, findNodeHandle, Text, StyleSheet } from 'react-native'; export default class App extends Component { constructor() { super(); this.state = {... Add solution -
Javascript 2022-02-10 02:05:02
reactnaviataion change title
import * as React from 'react'; import { View, Text, Button } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; function HomeScreen({ navigation }) { ret... Add solution -
Javascript 2021-11-21 15:46:24
react native passing parameters to routes
Copy function HomeScreen({ navigation }) { return ( <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Text>Home Screen</Text> <Button title="Go to Details" onPress=... Add solution -
TypeScript 2021-11-21 13:33:07
refreshcontrol
import React from 'react'; import { RefreshControl, SafeAreaView, ScrollView, StyleSheet, Text } from 'react-native'; const wait = (timeout) => { return new Promise(resolve => setTimeout(resolve, timeout)); } const App = () => { const [refr... Add solution -
Javascript 2021-11-12 16:38:13
navigation react pass props
Copyfunction HomeScreen({ navigation }) { return ( <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Text>Home Screen</Text> <Button title="Go to Details" onPress={() =&g... Add solution -
Javascript 2021-11-09 23:25:15
image touchable opacity react native
<TouchableOpacity style={{flexDirection:"row",alignItems:'center',justifyContent:'center'}}> <Text style={{flex:.8}}>Login</Text> <Image source={require('../../common/arrow.png')} resizeMode='contain' style={{flex:.2... Add solution
Best helpers
Ranking is empty