Skip to content

Conversation

@conroywhitney
Copy link
Contributor

This is one solution to addressing the problem where we want to be able to know the name of the current Kata in order to know which file to edit.

Some of the Katas have <Text /> labels with their names which works very well. However, for some Katas, the <Text /> would interfere with the styling of the Kata itself.

This approach instead adds a Nav bar at the top of the Kata runner in the simulator. This allows us to both see the name of the current Kata as well as render the Kata without interference.

  • Install NavigationBar from react-native-navbar
  • Create own Nav component wrapping NavigationBar
  • Wrap Runner in <View /> with Nav and Kata as children

This is one solution to addressing the problem where we want to be able to know the name of the current Kata in order to know which file to edit.

Some of the Katas have `<Text />` labels with their names which works very well. However, for some Katas, the `<Text />` would interfere with the styling of the Kata itself.

This approach instead adds a Nav bar at the top of the Kata runner in the simulator. This allows us to both see the name of the current Kata as well as render the Kata without interference.

 * Install NavigationBar from react-native-navbar
 * Create own Nav component wrapping NavigationBar
 * Wrap runner in View with Nav and Kata as children
@jondot
Copy link
Owner

jondot commented Jun 25, 2016

Excellent! I love the solution with navigator and the forward-thinking!
Kudos! 👍
PS - I'm sending free kata stickers so if you haven't yet sent me a mail - feel free to do so - dotan/at/paracode.com

:)

@jondot jondot merged commit d8b6df3 into jondot:master Jun 25, 2016
ian-aguilar added a commit to ian-aguilar/ReactNativeKatas that referenced this pull request Oct 4, 2024
pavlobuhii414 added a commit to pavlobuhii414/ReactNative-Project that referenced this pull request Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants