private double getPropertyAsDouble(ReadableMap map, String key) {
        if (map.hasKey(key) && map.getType(key) == ReadableType.Number) {
            return map.getDouble(key);
        }
        return Double.MIN_VALUE;
    }
This method tries to return the property pointed to by the key as a double from the map.

@param map the property map
@param key the key of the property we want
@return a double or MIN_VALUE denoting that we didn't find the key/value pair.
android/viro_bridge/src/main/java/com/viromedia/bridge/module/AnimationManager.java