Skip to content

null is not an object (evaluating '_reactNativeDisableBatteryOptimizationsAndroid.default.enableBackgroundServicesDialogue') #1

Description

@emersonrf227

Fiz a inclusão da biblioteca onde apresentou o seguinte erro
null is not an object (evaluating '_reactNativeDisableBatteryOptimizationsAndroid.default.enableBackgroundServicesDialogue')

` componentDidMount() {
RNDisableBatteryOptimizationsAndroid.enableBackgroundServicesDialogue();
this.getData();
Audio.setAudioModeAsync({
allowsRecordingIOS: false,
interruptionModeIOS: Audio.INTERRUPTION_MODE_IOS_DO_NOT_MIX,
playsInSilentModeIOS: true,
interruptionModeAndroid: Audio.INTERRUPTION_MODE_ANDROID_DO_NOT_MIX,
shouldDuckAndroid: true,
staysActiveInBackground: true,
playThroughEarpieceAndroid: false,
playsInBackgroundModeIOS: true,
playsInBackgroundModeAndroid: true

	});

	this.consultaMusica();
	this._interval = setInterval(() => {
		this.consultaMusica()

	}, 5000);
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions