Skip to content
Discussion options

You must be logged in to vote

Hi @jaikantshikray I am not sure if it is currently achievable using pointers. But it can be done easily using focus.

Here's an example- https://snack.expo.dev/@ak_97/focus-with-external-control?platform=android

Focus.mov

The code for the above chart is-

import {useState} from 'react'
import { Text, View, Pressable, SafeAreaView, StyleSheet } from 'react-native';
import {LineChart} from 'react-native-gifted-charts'

export default function App() {
  const [index,setIndex] = useState(-1)
  const data = [{value:10},{value:14},{value:16},{value:9},{value:12},]
  return (
    <SafeAreaView style={styles.container}>
      <LineChart
        data={data}
        focusEnabled
        sho…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@jaikantshikray
Comment options

@jaikantshikray
Comment options

Answer selected by Abhinandan-Kushwaha
Comment options

You must be logged in to vote
1 reply
@jaikantshikray
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants