INNER CODE UNIT · Java

rejectPromise

tolu360/react-native-google-places · android/src/main/java/com/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule.java:581

    private void rejectPromise(String code, Error err) {
        if (this.pendingPromise != null) {
            this.pendingPromise.reject(code, err);
            this.pendingPromise = null;
        }
    }

    private void resolvePromise(Object data) {
        if (this.pendingPromise != null) {
            this.pendingPromise.resolve(data);
            this.pendingPromise = null;
        }
    }

    private String findPlaceTypeLabelByPlaceTypeId(Integer id) {
        return RNGooglePlacesPlaceTypeEnum.findByTypeId(id).getLabel();
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…