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-01-30 18:26:30
touchableopacity as button in react native
//React Native Button element doesn't have style props and offers very //few customization. Use TochableXXX elements instead. //TouchableOpacity works fine import { TouchableOpacity, Text, } from "react-native"; <TouchableOpacity ... Add solution -
Javascript 2022-01-24 22:55:02
button size react native
/* I recommend you to use the TouchableOpacity component to build your own button, with own properties and styles. You can easily style it like this:*/ <TouchableOpacity style={{ height: 100, marginTop: 10 }}> <Text>My button</Text> ... Add solution -
Javascript 2021-11-12 17:37:08
change button color react native
The react Button component renders the native button on each platform it uses. Because of this, it does not respond to the style prop. It has its own set of props. The correct way to use it would have been <Button color="#ff5c5c" title=&quo... 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 -
Javascript 2021-10-17 11:49:03
react native camera example
import React, { PureComponent } from 'react'; import { AppRegistry, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import { RNCamera } from 'react-native-camera'; class ExampleApp extends PureComponent { render() { return ( &... Add solution