Skip to content

Commit

Permalink
feat: refactored view callback and layout functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Aug 29, 2024
1 parent 2898ed7 commit b3c2fe7
Show file tree
Hide file tree
Showing 32 changed files with 2,166 additions and 2,581 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ in an unbounded widget will cause the application to behave unexpectedly.
// Permissions must have been granted by this point.
<NavigationView
width={navViewWidth}
height={navViewHeight}
androidStylingOptions={{
primaryDayModeThemeColor: '#34eba8',
headerDistanceValueTextColor: '#76b5c5',
Expand Down Expand Up @@ -142,6 +140,16 @@ const requestPermissions = async () => {
};
```

### Changing the NavigationView size
By default, `NavigationView` uses all the available space provided to it. To adjust the size of the NavigationView, use the `style` prop.

```tsx
<NavigationView
style={{width: 200, height: 50%}}
...
/>
```

## Contributing

See the [Contributing guide](./CONTRIBUTING.md).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

public class Constants {
public static final String NAV_JAVASCRIPT_FLAG = "NavJavascriptBridge";
public static final String NAV_VIEW_JAVASCRIPT_FLAG = "NavViewJavascriptBridge";
public static final String LAT_FIELD_KEY = "lat";
public static final String LNG_FIELD_KEY = "lng";
}

This file was deleted.

Loading

0 comments on commit b3c2fe7

Please sign in to comment.