Skip to content

Instantly share code, notes, and snippets.

View shubh007-dev's full-sized avatar
🏠
Working from home

Shubham Bisht shubh007-dev

🏠
Working from home
View GitHub Profile
/* The container */
.radioContainer {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
font-size: 22px;
-webkit-user-select: none;
-moz-user-select: none;
import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View, Dimensions, PanResponder, Animated, ScrollView } from 'react-native';
const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
android:
'Double tap R on your keyboard to reload,\n' +
'Shake or press menu button for dev menu',
});
export class RadioButton extends Component {
constructor(props){
super(props);
this.state = {
radioSelected: this.props.selectedItemId,
springValue: new Animated.Value(1.1),
}
}
radioClick(id) {