Skip to content

Crash app #25

Description

@sajadspeed

I following your documentation but android app not run and crash.

App.js

import React from 'react';
import { SafeAreaView, StyleSheet, View} from 'react-native';
import Mapir from 'mapir-react-native-sdk'

const App = () => {
	
	return (
		<SafeAreaView style={styles.container}>
			<View style={styles.container}>
				<Mapir
				apiKey={'****'}
				onRegionDidChange={(e) => onRegionDidChange(e)}
				style={styles.container}
				>
				<Mapir.Camera
					zoomLevel={13}
					centerCoordinate={[51.422548, 35.732573]}
				/>
				</Mapir>
			</View>
		</SafeAreaView>
	);
}
  
const styles = StyleSheet.create({
	container: {
		flex: 1,
	},
});
  

export default App;

  • "react": "17.0.2"
  • "react-native": "0.66.1"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions