Socket
Socket
Sign inDemoInstall

react-native-radio-button-group

Package Overview
Dependencies
5
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

6

lib/Circle.js
import React, { PureComponent } from 'react';
import { View, StyleSheet, Animated } from 'react-native';
import PropTypes from 'prop-types';
import _ from 'lodash';

@@ -13,2 +12,3 @@ class Circle extends PureComponent {

};
this.setWidthHeight = this.setWidthHeight.bind(this);
}

@@ -29,3 +29,3 @@

setWidthHeight(event) {
const active = _.get(this.props, 'active', false);
const active = this.props.active;
const height = event.nativeEvent.layout.height;

@@ -51,3 +51,3 @@ const width = event.nativeEvent.layout.width;

style={[styles.circle, circleStyle]}
onLayout={this.setWidthHeight.bind(this)}
onLayout={this.setWidthHeight}
>

@@ -54,0 +54,0 @@ <Animated.View

import React, { PureComponent } from 'react';
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
import _ from 'lodash';
import Circle from './Circle';

@@ -44,3 +43,3 @@

<View style={[styles.container, horizontal && { flexDirection: 'row' }]}>
{_.map(options, option => (
{options.map(option => (
<TouchableOpacity

@@ -47,0 +46,0 @@ key={option.id}

{
"name": "react-native-radio-button-group",
"version": "1.0.1",
"version": "1.0.2",
"description": "Simple and handy animated Radio group button for React Native",

@@ -25,5 +25,4 @@ "main": "index.js",

"dependencies": {
"lodash": "^4.17.11",
"prop-types": "^15.6.2"
}
}

@@ -110,3 +110,2 @@ # react-native-radio-button-group

<RadioGroup
horizontal
options={[

@@ -116,3 +115,3 @@ {

labelView: (
<Text>
<Text style={{flex: 1}}>
Button label as <Text style={{ color: 'red' }}>View</Text>

@@ -119,0 +118,0 @@ </Text>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc