maplibre / maplibre/maplibre-react-native

Implement `textVariableAnchorOffset`

Open
#562 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
661
Forks
124
Avg merge
1d 2h
Merged PRs (30d)
30

Description

With the latest native upgrades the textVariableAnchorOffset style prop should be available. But I'm seeing the following problems properly implementing it:

  • Android needs a special type with a mixed array type of (string | [number, number])[]
  • iOS can't use layer.textVariableAnchorOffset Had a problem with the SPM dependency

To not block the native upgrade, the style is currently not available through MLRN.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how style props are defined and exposed for textVariableAnchorOffset in the React Native, Android, and iOS integrations. Check the native upgrade types and bindings, then verify that the mixed Android value type is accepted and the style is available through MLRN on both platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.