- You'll first need to go through a normal react-native setup
- Create a new react-native project with
react-native init <YOUR-PROJECT-NAME>
cd
into your project- You have 2 options for linking
react-native-mapbox-gl
- Use
react-native link
- Clone
@react-native-mapbox-gl/maps
into thenode_modules
folder
- Go through a normal install process for your platform
Once installed, you can edit any file in @react-native-mapbox-gl/maps
,
commit the changes and push them to a fork for creating a pull request.
- If you add a feature, make sure you add it to the documentation
- If you add an objective-c or java method, make sure you update the declaration file:
index.d.ts
.
Documentation is generated from code blocks and comments.
It will be auto-generated when you commit changes.
If any changes are generated from your edits, the changed files will need to be added using git add
before attempting the commit again.
To manually generate the changes, run npm run generate
.