Added additional parameters for logging

Summary:
The navigation plugin supports logging of a date and the class name. This addition adds that support.

I have kept the previoius method which I will remove once  I update the fb4a navigation plugin integration.

Reviewed By: danielbuechele

Differential Revision: D17202996

fbshipit-source-id: eac95328a6e2278c3a27ca608b9b675c8efe4528
This commit is contained in:
Benjamin Elo
2019-09-05 05:57:48 -07:00
committed by Facebook Github Bot
parent 4e71d9b1ea
commit a90422bf2f
2 changed files with 15 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ export default class extends FlipperPlugin<State, any, PersistedState> {
const {setPersistedState} = this.props;
const navigationEvent: NavigationEvent = {
uri: payload.uri === undefined ? null : decodeURIComponent(payload.uri),
date: payload.date || new Date(),
date: new Date(payload.date) || new Date(),
className: payload.class === undefined ? null : payload.class,
screenshot: null,
};