File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ function App(): JSX.Element {
6161 GetLocation . getCurrentPosition ( {
6262 enableHighAccuracy : true ,
6363 timeout : 30000 ,
64+ rationale : {
65+ title : 'Location permission' ,
66+ message : 'The app needs the permission to request your location.' ,
67+ buttonPositive : 'Ok' ,
68+ } ,
6469 } )
6570 . then ( newLocation => {
6671 setLoading ( false ) ;
@@ -102,8 +107,6 @@ function App(): JSX.Element {
102107 < Button
103108 title = "Open App Settings"
104109 onPress = { ( ) => {
105- // @ts -ignore
106- // experimental
107110 GetLocation . openAppSettings ( ) ;
108111 } }
109112 />
@@ -112,8 +115,6 @@ function App(): JSX.Element {
112115 < Button
113116 title = "Open Gps Settings"
114117 onPress = { ( ) => {
115- // @ts -ignore
116- // experimental
117118 GetLocation . openGpsSettings ( ) ;
118119 } }
119120 />
@@ -122,8 +123,6 @@ function App(): JSX.Element {
122123 < Button
123124 title = "Open Wifi Settings"
124125 onPress = { ( ) => {
125- // @ts -ignore
126- // experimental
127126 GetLocation . openWifiSettings ( ) ;
128127 } }
129128 />
@@ -132,8 +131,6 @@ function App(): JSX.Element {
132131 < Button
133132 title = "Open Mobile Data Settings"
134133 onPress = { ( ) => {
135- // @ts -ignore
136- // experimental
137134 GetLocation . openCelularSettings ( ) ;
138135 } }
139136 />
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-get-location" ,
33 "displayName" : " React-Native Get Location" ,
4- "version" : " 2.2.1 " ,
4+ "version" : " 3.0.0 " ,
55 "description" : " ⚛ Simple to use React Native library to get device location for Android and iOS." ,
66 "main" : " index.js" ,
77 "types" : " index.d.ts" ,
You can’t perform that action at this time.
0 commit comments