How to use the fbt.IntlVariations.GENDER_MALE function in fbt

To help you get started, we’ve selected a few fbt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github facebookincubator / fbt / live-demo-app / src / example / Example.react.js View on Github external
<form method="get" action="">
            <fieldset>
              <span>
                <span>
                  <select>) =&gt; {
                      const vcGender = parseInt(event.target.value, 10);
                      IntlViewerContext.GENDER = vcGender;
                      this.forceUpdate();
                    }}&gt;
                    <option value="{IntlVariations.GENDER_UNKNOWN}">
                      Your Gender:
                    </option>
                    <option value="{IntlVariations.GENDER_MALE}">Female</option>
                    <option value="{IntlVariations.GENDER_FEMALE}">Male</option>
                    <option value="{IntlVariations.GENDER_UNKNOWN}">
                      Unknown
                    </option>
                  </select>
                </span>
              </span>
            </fieldset>

            <fieldset>
              <span>
                <span>
                  </span></span></fieldset></form>
github facebookincubator / fbt / demo-app / src / example / Example.react.js View on Github external
<span>
                <span>
                  <select>) =&gt; {
                      const vcGender = parseInt(event.target.value, 10);
                      IntlViewerContext.GENDER = vcGender;
                      this.forceUpdate();
                    }}&gt;
                    <option value="{IntlVariations.GENDER_UNKNOWN}">
                      Your Gender:
                    </option>
                    <option value="{IntlVariations.GENDER_UNKNOWN}">
                      Unknown
                    </option>
                    <option value="{IntlVariations.GENDER_MALE}">
                      Male
                    </option>
                    <option value="{IntlVariations.GENDER_FEMALE}">
                      Female
                    </option>
                  </select>
                </span>
              </span>
            

            <fieldset>
              <span>
                <span>
                  </span></span></fieldset>