Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

Try to setup react-native-screens #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

satya164
Copy link
Member

@satya164 satya164 commented May 19, 2019

This seems super-buggy atm.

On Android, initially this seems to work, but as soon as you start swiping and then release, no gestures such as touch work after that.
Same issue can also be reproduced if you just leave all screens active. Seems to be software-mansion/react-native-screens#61

On iOS, I get undefined is not an object (evaluating 'this._ref.setNativeProps').
The ref is undefined for some reason only on iOS: https://github.com/kmagiera/react-native-screens/blob/acf80e640c584bf4019cfaf9356ee44b09e7dc99/src/screens.native.js#L44

image

If you do active={focused ? 1 : 0}, it works as expected on Android (though not desirable). However, on iOS, no gestures such as touch seem to work.

cc @brentvatne @osdnk @kmagiera

@satya164 satya164 force-pushed the @satya164/screens branch 4 times, most recently from 49db3c8 to 6694a61 Compare May 19, 2019 20:51
@satya164 satya164 force-pushed the master branch 8 times, most recently from 9db82ec to b57666d Compare May 21, 2019 20:34
@satya164 satya164 requested a review from osdnk May 21, 2019 22:08
This seems super-buggy atm.

On Android, initially this seems to work, but as soon as you start swiping and then release, no gestures such as touch work after that.
Same issue can also be reproduced if you just leave all screens active. Seems to be software-mansion/react-native-screens#61

On iOS, I get `undefined is not an object (evaluating 'this._ref.setNativeProps')`.
The `ref` is undefined for some reason only on iOS: https://github.com/kmagiera/react-native-screens/blob/acf80e640c584bf4019cfaf9356ee44b09e7dc99/src/screens.native.js#L44

If you do `active={focused ? 1 : 0}`, it works as expected on Android (though not desirable).
However, on iOS, no gestures such as touch seem to work.
@satya164 satya164 force-pushed the @satya164/screens branch from 6694a61 to 7bc1922 Compare May 21, 2019 22:18
@satya164 satya164 force-pushed the master branch 2 times, most recently from 5cfceef to 9c1ebdf Compare May 26, 2019 13:50
Copy link
Member

@osdnk osdnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a way to getting rid of an error. But it's still not set up

@@ -1,5 +1,6 @@
import * as React from 'react';
import { View, StyleSheet, LayoutChangeEvent } from 'react-native';
import { StyleSheet, LayoutChangeEvent, ViewProps } from 'react-native';
import { Screen, ScreenContainer } from 'react-native-screens';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { Screen, ScreenContainer } from 'react-native-screens';
import { Screen, ScreenContainer, NativeScreen } from 'react-native-screens';


// @ts-ignore
const AnimatedScreen = Animated.createAnimatedComponent(
Screen
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Screen
NativeScreen

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants