Package 

Interface ReactNativeConfig


  • 
    public interface ReactNativeConfig
    
                        

    ReactNative Configuration that allows to customize the behavior of key/value pairs used by the framework to enable/disable capabilities.

    The hosting app should provide an implementation of this interface to allow specific customization of single keys. An empty implementation is available as .

    This is a wrapper for the ReactNativeConfig object in C++

    • Method Summary

      Modifier and Type Method Description
      abstract boolean getBool(@NonNull() String param) Get a boolean param by string name.
      abstract long getInt64(@NonNull() String param) Get a Long param by string name.
      abstract String getString(@NonNull() String param) Get a string param by string name.
      abstract double getDouble(@NonNull() String param) Get a double param by string name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getBool

         abstract boolean getBool(@NonNull() String param)

        Get a boolean param by string name. Default should be false.

        Parameters:
        param - The string name of the parameter being requested.
      • getInt64

         abstract long getInt64(@NonNull() String param)

        Get a Long param by string name. Default should be 0.

        Parameters:
        param - The string name of the parameter being requested.
      • getString

         abstract String getString(@NonNull() String param)

        Get a string param by string name. Default should be "", empty string.

        Parameters:
        param - The string name of the parameter being requested.
      • getDouble

         abstract double getDouble(@NonNull() String param)

        Get a double param by string name. Default should be 0.

        Parameters:
        param - The string name of the parameter being requested.