I'm using MeteorReact, doing project involving google map, the component did mount did fired in the web but building it to android breaks the component did mount, which my map initialization is in the component, result in showing white screen rather than map.
There might be two reason to this as i could think of, which First is problem coming from Cordova, second is coming from react-komposer. Here is the code:
`
import React from 'react';
import { Tracker } from 'meteor/tracker';
import { compose } from 'react-komposer';
import { SetGoogleMapApiScript, initMap } from './MapFunctions.jsx';
import { getTrackerLoader } from '../../../api/CommonFunction/TrackerLoader.js';
`
The problem occurs where the composer wrapper around the Map component, if i remove the composer, the map appears in mobile, but i cant pass any data on it.
I'm using MeteorReact, doing project involving google map, the component did mount did fired in the web but building it to android breaks the component did mount, which my map initialization is in the component, result in showing white screen rather than map. There might be two reason to this as i could think of, which First is problem coming from Cordova, second is coming from react-komposer. Here is the code: ` import React from 'react'; import { Tracker } from 'meteor/tracker'; import { compose } from 'react-komposer';
import { SetGoogleMapApiScript, initMap } from './MapFunctions.jsx'; import { getTrackerLoader } from '../../../api/CommonFunction/TrackerLoader.js';
class Map extends React.Component {
function reactiveMapper ( props, onData ) {
};
let MapComposed = compose ( getTrackerLoader ( reactiveMapper ) ) ( Map );
export { MapComposed };
};
//another file... let SetGoogleMapApiScript = ( directions )=> {
};
// Make global functions window.initMap = ()=> {
};
/// more hidden.....
` The problem occurs where the composer wrapper around the Map component, if i remove the composer, the map appears in mobile, but i cant pass any data on it.