Skip to content

Instantly share code, notes, and snippets.

@vieiraeduardos vieiraeduardos/App
Created May 15, 2019

Embed
What would you like to do?
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';
import RadioForm, {RadioButton, RadioButtonInput, RadioButtonLabel} from 'react-native-simple-radio-button';
var radio_props = [
{label: 'param1', value: 0 },
{label: 'param2', value: 1 }
];
export default class App extends Component {
render() {
return (
<View>
<RadioForm
radio_props={radio_props}
initial={0}
onPress={(value) => {this.setState({value:value})}}
/>
</View>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.