Skip to content

Conversation

sdenaci
Copy link

@sdenaci sdenaci commented Feb 8, 2021

Currently, for configurations in Android which are booleans or integers, the values are not bridged accurately to React-Native.

In the case of booleans, they always converted to null.
In the case of integers, they are converted to strings.

This pr determines whether type of the restriction value (integer, boolean, or string) and then writes the correct type to the WritableMap which is bridged to React-Native.

To test:

  1. Set boolean and integer values in your managed configurations.
  2. Confirm that they are booleans and integers

@martin-shaw
Copy link

martin-shaw commented Feb 25, 2021

I also need support for boolean restriction types so would like to see this feature added. Is this project still active and maintained?

@AldenCheong
Copy link

Would like to have this merged too, so that boolean restriction type can be supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants