title: clearing radio button after form submission react native
body: <pre><code>react-native-simple-radio-button
  </code></pre>
  
  <p>i have a simple form with radio buttons
  i want to clear the form after submission
  but it is not getting cleared this is weird </p>
  
  <p>Here is the code:</p>
  
  <pre><code>import * as React from 'react';
  import { Text, View, StyleSheet,Button } from 'react-native';
  import RadioForm, { RadioButton, RadioButtonInput, RadioButtonLabel } from 'react-native-simple-radio-button';
  export default class App extends React.Component {
  
    state = {
        ages: [
          {key:1,label:20},
          {key:2,label:30},
          {key:3,label:40},
        ],
  
        initialRadioPos: -1
    } 
    render() {
      return (
        &lt;View style={styles.container}&gt;
          &lt;View
            style={{
              flexDirection: 'column',
              marginTop: 10,
              alignItems: 'flex-start',
            }}&gt;
              &lt;RadioForm
                radio_props={this.state.ages}
                initial={this.state.initialRadioPos}
                formHorizontal={false}
                labelHorizontal={true}
                buttonColor={this.state.switched ? '#673AB7' : '#A9A9A9'}
                selectedButtonColor={this.state.switched ? '#673AB7' : '#A9A9A9'}
                onPress={currentAge =&gt; {
                  this.setState({ currentAge });
                }}
              /&gt;
              &lt;Button title="submit" onPress={()=&gt;this.clear()}/&gt;
            &lt;/View&gt;
        &lt;/View&gt;
      );
    }
    clear = () =&gt;{
      this.setState({
        initialRadioPos:-1
      })
    }
  }
  
  const styles = StyleSheet.create({
    container: {
      flex: 1,
      justifyContent: 'center',
      backgroundColor: '#ecf0f1',
      padding: 8,
    },
  });
  </code></pre>
  
  <p>and here is the code on snack you can check it
  <a href="https://snack.expo.io/@andreh111/aW5zYW" rel="nofollow noreferrer">https://snack.expo.io/@andreh111/aW5zYW</a></p>
  
  <p>i am setting the initialRadioPos to -1 on button press but nothing happens but i think the code logic is correct ... so where is the problem </p>