Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Hartani Yassir Yassir4

🎯
Focusing
Block or report user

Report or block Yassir4

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Yassir4
Yassir4 / styles.js
Created Aug 4, 2019
ModalScreen/styles.js
View styles.js
// ModalScreen/styles.js
import {StyleSheet} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'skyblue',
},
@Yassir4
Yassir4 / index.js
Created Aug 13, 2019
export navigation functions Navigation/index.js
View index.js
export const pushScreen = props => {
const { componentId } = props;
Navigation.push(componentId, {
component: {
name: 'PushedScreen',
},
});
};
export const openModal = () => {
View index.js
export const pushScreen = props => {
const { componentId } = props;
Navigation.push(componentId, {
component: {
name: 'PushedScreen',
},
});
};
export const openModal = () => {
You can’t perform that action at this time.