What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-14 15:44:24
change status bar color ios react native
import React from 'react' import { View, Text, StatusBar, LogBox, Platform } from 'react-native' import Routes from './Src/Routes' const App = () => { if (Platform.OS == 'ios') { StatusBar.setBarStyle('light-content', true); //<<--- add t... Add solution -
Javascript 2021-09-30 21:31:03
ellipsizemode react native example
import React, { Component } from 'react'; import { View, Text, StyleSheet, Platform } from 'react-native'; export default class App extends Component<{}> { render() { return( <View style = { styles.container }> ... Add solution -
Other 2021-09-09 23:41:03
react-native-print example
// Print HTML as a Document from React Native App for Android and iOS // https://aboutreact.com/react-native-print-html/ // Import React import React, {useState} from 'react'; // Import required components import { SafeAreaView, StyleSheet, Platfor... Add solution -
Javascript 2021-09-07 20:11:02
change text size according to screen react native
import { Dimensions, Platform, PixelRatio } from 'react-native'; const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT, } = Dimensions.get('window'); // based on iphone 5s's scale const scale = SCREEN_WIDTH / 320 ; export ... Add solution