Comments (10)
I used this one
https://github.com/Richou/react-native-android-location-enabler#readme
from react-native-location-enabler.
You can use the platform-specific code of react-native.
import the package when the phone is only android. first create two files by the name locationEnabler.android.js and locationEnabler.ios.js
import the package in locationEnabler.android.js and use it as usual.
from react-native-location-enabler.
the link for platform-specific code of react-native
https://reactnative.dev/docs/platform-specific-code.html#platform-specific-extensions
from react-native-location-enabler.
No, I ended up changing the library.
from react-native-location-enabler.
Hi did you fix it? I face with same problem
from react-native-location-enabler.
Can you give me advice for this future?
from react-native-location-enabler.
is there any way to edit the alert content?
from react-native-location-enabler.
is there any way to edit the alert content?
there is not any way to change the alert content, cause it comes from native android settings api
from react-native-location-enabler.
`import {Platform} from 'react-native';
import AddingDevicesScreenAndroid from './AddingDevicesScreen.android';
import AddingDevicesScreenIos from './AddingDevicesScreen.ios';
export default Platform.select({
ios: AddingDevicesScreenIos,
android: AddingDevicesScreenAndroid,
});`
You guys can try this. This work for me. I made 2 versions for each specific platform.
from react-native-location-enabler.
the best solution for me:
https://reactnative.dev/docs/platform-specific-code#platform-specific-extensions
from react-native-location-enabler.
Related Issues (17)
- How to edit pop up? HOT 2
- locationEnabled always return false in listener HOT 4
- Build Failed HOT 13
- ActivityEventListener listens to all requestCode
- Not working with warning
- FAILURE: Build failed with an exception HOT 1
- TypeError: Cannot read property 'HIGH_ACCURACY' of undefined
- TypeError: Cannot read property 'HIGH_ACCURACY' of undefined
- FAILURE: Build failed with an exception. HOT 2
- FEATURE ADD REQUEST: requestResolution / requestResolutionSettings should return the option selected by user, and more. HOT 1
- Unable to run ESLint HOT 1
- HI app crash due to onActivityResult receiving null intent HOT 5
- Example error: unable to resolve interopRequireDefault HOT 4
- Issue in IOS HOT 9
- How should permission not being granted be handled? HOT 1
- Gets old setting sometimes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-location-enabler.